Created
September 23, 2020 20:42
-
-
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
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
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