Last active
January 27, 2016 06:59
-
-
Save mgruesbeck/0c575e747b930f49eabe to your computer and use it in GitHub Desktop.
Renaming shit
This file contains 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
#!/bin/sh | |
num=1 | |
for file in *.jpg; do | |
mv "$file" "rename_shit$(printf "%u" $num).jpg" | |
let num=$num+1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment