Skip to content

Instantly share code, notes, and snippets.

@isaac32767
Last active December 19, 2015 03:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Rename MP3s so that file name order is the same as timestamp order. Necessitated by the disappearance of UMS support on newer Android phones.
ls -rt | awk 'BEGIN{ a=0 }{ printf "mv %s c%04d-%s\n", $0, a++, $0 }' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment