Last active
November 10, 2019 01:28
-
-
Save VadimBrodsky/d7b557710f1c64395ce3be7ebb07c276 to your computer and use it in GitHub Desktop.
Pad Zeroes to File Name
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
# 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