|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
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) |
|
|||
Thanks for the replies.
I have discovered that the caret symbol - ^ - is a shell glob that negates the normal meaning (works with tcsh at least).
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14) |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Negative partition size? | giga | FreeBSD General | 1 | 2nd January 2009 09:02 PM |