Skip to content

Instantly share code, notes, and snippets.

@VadimBrodsky
Last active November 10, 2019 01:28
Show Gist options
  • Save VadimBrodsky/d7b557710f1c64395ce3be7ebb07c276 to your computer and use it in GitHub Desktop.
Save VadimBrodsky/d7b557710f1c64395ce3be7ebb07c276 to your computer and use it in GitHub Desktop.
Pad Zeroes to File Name
# https://unix.stackexchange.com/questions/346917/rename-files-to-add-leading-zeros-to-numbers
rename -e 's/\d+/sprintf("%02d",$&)/e' -- *.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment