Created
May 19, 2015 19:37
-
-
Save Echooff3/3414dd6404913c8efe4f to your computer and use it in GitHub Desktop.
Rename JPEGS in folder in reverse order
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 . -name '*.jpg' | sort -r | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment