Skip to content

Instantly share code, notes, and snippets.

@feribg
Created December 29, 2013 19:15
Show Gist options
  • Save feribg/8173730 to your computer and use it in GitHub Desktop.
Save feribg/8173730 to your computer and use it in GitHub Desktop.
Simple snippet to generate m3u files from all mp3 files in a folder
find . -name '*.mp3' -execdir bash -c 'file="{}"; printf "%s\n" "${file##*/}" >> "${PWD##*/}.m3u"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment