Created
January 3, 2016 18:05
-
-
Save dnlcrl/7110dab3f819299e6b9e to your computer and use it in GitHub Desktop.
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 | |
# rename all PNGs in . from 0001.png to 0004.png | |
a=1; | |
for i in *.png; do | |
new=$(printf "%03d.png" "$a"); | |
mv -- "$i" "$new"; | |
let a=a+1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment