Skip to content

Instantly share code, notes, and snippets.

@Edwardtonnn
Created May 20, 2024 22:03
Show Gist options
  • Save Edwardtonnn/b6b7cecedc2b0abd1ea1ab415009f27d to your computer and use it in GitHub Desktop.
Save Edwardtonnn/b6b7cecedc2b0abd1ea1ab415009f27d to your computer and use it in GitHub Desktop.
sequence rename 01 02 03
n=1; for file in *.jpg; do mv "$file" $(printf "%02d.jpg" $n); n=$((n + 1)); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment