Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to zero pad numbers in file names in Bash?

rename 's/d+/sprintf("%05d",$&)/e' [file_name]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #pad #numbers #file #names
ADD COMMENT
Topic
Name
2+3 =