Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash rename different file names with zero padding

autoload -Uz zmv # best in ~/.zshrc
zmv -n '(*).pdf' '${1//(#m)<->/${(l[3][0])MATCH}}.pdf'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #rename #file #names #padding
ADD COMMENT
Topic
Name
7+3 =