Created
September 20, 2019 19:34
-
-
Save shubhamagarwal92/d4e3a4cd1982f068920b74b63b1a54de to your computer and use it in GitHub Desktop.
To copy all files recursively in a folder except .ext files
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
# To copy all files recursively in a folder except .pth files | |
# Be careful no "/" in source_dir whle "/" in final_dir | |
rsync -avr --exclude=*.pth source_dir final_dir/ | |
# For a file in just one folder | |
cp -r !(*.png) dest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment