Skip to content

Instantly share code, notes, and snippets.

@ShaneQful
Created January 11, 2014 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShaneQful/385f94786a1880260531 to your computer and use it in GitHub Desktop.
Save ShaneQful/385f94786a1880260531 to your computer and use it in GitHub Desktop.
Generate play-lists for Jolla because the music indexing sucks
find /run/user/100000/media/sdcard/Music/Owl\ City/ | awk -F ":" '{print "File"FNR-1"=file://"$1}' | tail -n+2 >> Owl\ City.pls
cat Owl\ City.pls | tail -n+4 | grep -o -P "\/[^\.\/]+\." | grep -o -P "[^\/]+" | awk -F ";" '{print "Title"FNR"=" $1}' >> Owl\ City.pls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment