Skip to content

Instantly share code, notes, and snippets.

@hasantahir
Created September 23, 2020 20:42
Show Gist options
  • Save hasantahir/eb9cb4ff2a0714f93cd35b7107be72c6 to your computer and use it in GitHub Desktop.
Save hasantahir/eb9cb4ff2a0714f93cd35b7107be72c6 to your computer and use it in GitHub Desktop.
If there are a lot of subfolders and they need to be removed. Use the following terminal command
sudo find Exported\ Items -name "*.pdf" -type file -exec cp {} Exported\ Items/ \;
In the above example: all the PDFs that could be within any level of the main folder 'Exported Items' are copied to the root folder.
This is particularly useful when zotero is used to export PDFs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment