Created
September 13, 2015 23:47
-
-
Save krasnobaev/3bb3f016756012c2f77a to your computer and use it in GitHub Desktop.
From http://stackoverflow.com/questions/4585929/how-to-use-cp-command-to-exclude-a-specific-directory
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
$ shopt -s extglob | |
$ echo images/* | |
images/004.bmp images/033.jpg images/1276338351183.jpg images/2252.png | |
$ echo images/!(*.jpg) | |
images/004.bmp images/2252.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment