Skip to content

Instantly share code, notes, and snippets.

@andgineer
Last active April 23, 2020 03:21
Show Gist options
  • Save andgineer/4b5bff72ebf502fac771d33c70d36dce to your computer and use it in GitHub Desktop.
Save andgineer/4b5bff72ebf502fac771d33c70d36dce to your computer and use it in GitHub Desktop.
Flat it! Copies files from subfolders
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