Skip to content

Instantly share code, notes, and snippets.

@scottnunemacher
Last active January 5, 2023 17:56
Show Gist options
  • Save scottnunemacher/f9e4ede88f8fdecead52920bedf401b9 to your computer and use it in GitHub Desktop.
Save scottnunemacher/f9e4ede88f8fdecead52920bedf401b9 to your computer and use it in GitHub Desktop.
Find recursively all files of extension and cp to flat directory
find . -name "*.pdf" -type file -exec cp {} /path/to/directory \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment