Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to zero pad numbers in file names in Bash?

rename 's/d+/sprintf("%05d",$&)/e' [file_name]
Comment

PREVIOUS NEXT
Code Example
Shell :: how to create a local user account in windows 10 (list the steps) 
Shell :: angular new site 
Shell :: add features for wsl linux 
Shell :: Filter Up Hosts 
Shell :: keep services up 2 
Shell :: wifi falling out 
Shell :: full stack roadmap github 
Shell :: How to translate a string to md5 using bash 
Shell :: How to translate to md5 bash 
Shell :: ionic capacitor file-chooser 
Shell :: set dynamic values with kubernetes yaml file 
Shell :: stripe cli install 
Shell :: auto git script 
Shell :: dpkg: error processing archive /var/cache/apt/archives/influxdb_1.8.10-1_amd64.deb (--unpack): 
Shell :: homebrew install nasm 
Shell :: papermc no gui 
Shell :: |select name and description powershell 
Shell :: prepend xml to svg sed 
Shell :: how to detach from screen session linux 
Shell :: check_mk ubuntu 20.04 
Shell :: dockerfile export to local file 
Shell :: wget health check 
Shell :: calibre on centos terminal 
Shell :: docker run from docker hub 
Shell :: bash print one line until match 
Shell :: changed files github 
Shell :: move a file from one directory to another in linux 
Shell :: will exe file work on ubantu 
Shell :: install docker on ubuntu 
Shell :: git push ubuntu need to supply email and password everytime 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =