Created
September 18, 2020 20:52
-
-
Save ehzawad/406287c41f2fd786fb83fcdd7a1141c0 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 | |
num=1 | |
for file in *.jpg; do | |
mv "$file" "$(printf "%0.4d" $num).jpg" | |
let num=$num+1 | |
done |
Author
ehzawad
commented
Sep 18, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment