Skip to content

Instantly share code, notes, and snippets.

@inscapist
Created October 7, 2015 21:47
Show Gist options
  • Save inscapist/7e3b38972d50aa511739 to your computer and use it in GitHub Desktop.
Save inscapist/7e3b38972d50aa511739 to your computer and use it in GitHub Desktop.
extract pdfs from nested folders

Say i want to extract my ebooks(PDF) from nested folders to a flattened format

  1. mkdir ~/mybooks
  2. cd ~/nested-books-folder
  3. run the command below
find . -iname '*.pdf' -exec cp {} '../mybooks/.' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment