DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+3 =
Submit