Last active
April 23, 2020 03:21
-
-
Save andgineer/4b5bff72ebf502fac771d33c70d36dce to your computer and use it in GitHub Desktop.
Flat it! Copies files from subfolders
This file contains hidden or 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
find ./ -iname "*.mp3" -type f -exec sh -c 'cp $0 "$(basename -- $(dirname -- $0))_$(basename -- $0)"' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment