Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################################
- # NOTES ON HOW TO COPY ALL INSTANCES OF CHOSEN FILE EXTENSION TYPE AND CP #
- ############################################################################
- # EXAMPLE 1
- cp --parents `find -name \*.xls*` /target_directory/
- # EXAMPLE 2
- find dir_name '*.mp3' -exec cp -vuni '{}' "../dest_dir" ";"
- # EXAMPLE 3
- find SOURCEPATH -name filename*.txt -exec cp --parents {} DESTPATH \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement