Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Created September 18, 2020 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/406287c41f2fd786fb83fcdd7a1141c0 to your computer and use it in GitHub Desktop.
Save ehzawad/406287c41f2fd786fb83fcdd7a1141c0 to your computer and use it in GitHub Desktop.
#!/bin/sh
num=1
for file in *.jpg; do
mv "$file" "$(printf "%0.4d" $num).jpg"
let num=$num+1
done
@ehzawad
Copy link
Author

ehzawad commented Sep 18, 2020

 rm -rf {0921..1784}.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment