View Single Post
  #1   (View Single Post)  
Old 2nd October 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default Negative Wildcard Matching

Hello,

In the shell, if you want to match a group of items based on a condition, you could use a wildcard. For example, if there was a bunch of .txt files in a directory, you could list only those items with % ls *.txt

Is there a way to match items based on the exclusion of a condition. Going with the .txt example, how would I select only those items in the directory that don't end in .txt?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote