Created
November 3, 2022 21:05
-
-
Save stwobe/065093d37804f005dc5efd3e926b1d8c to your computer and use it in GitHub Desktop.
Search and copy multiple files from multiple locations to one destination - Linux command line
This file contains 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 . "*.wav" -print0 | xargs -0 cp -t ~/Music | |
# referenced from | |
# https://stackoverflow.com/questions/26234041/is-it-possible-to-pipe-the-results-of-find-to-a-copy-command-cp | |
# find . -iname "*.SomeExt" -print0 | xargs -0 cp -t Directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment