Created
March 3, 2014 23:08
-
-
Save daudo/9336560 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash$ shopt -s extglob | |
bash$ ls -l /opt/too_many_files/!(confidential.txt) | |
secret.txt | |
top_secret.txt | |
public.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The comment in your blog -- http://riaschissl.bestsolution.at/2014/03/repost-howto-exclude-files-from-wildcard-matches-in-bash/ says that '!' behaviour is redefined, can you give an example of this? It doesn't seem like it modifies the behaviour when doing anything like
!vim
orsudo !!