Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stwobe/065093d37804f005dc5efd3e926b1d8c to your computer and use it in GitHub Desktop.
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
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