Created
February 20, 2015 16:18
-
-
Save AlexBezuska/3180dd26ade437aa0f14 to your computer and use it in GitHub Desktop.
Flatten directory with Gnu CP
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
if you don't have Gnu copy: | |
brew install coreutils | |
Flatten: | |
Specific file type only | |
find SOURCE -name '*.mp3' -exec gcp -v --backup=numbered {} DESTINATION \; | |
All files | |
find SOURCE -type f -exec gcp -v --backup=numbered {} DESTINATION \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment