Created
April 30, 2014 16:33
-
-
Save brantfaircloth/1ebdcfd1775f7200c156 to your computer and use it in GitHub Desktop.
copy but exclude files in a list
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
find . -type f | grep -v -f exclude.txt | xargs cp -t /path/to/new/dir |
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
file1.txt | |
file2.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment