Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash zero padding

for i in $(seq -f "%05g" 10 15)
do
  echo $i
done
Comment

variable replacement bash zero padding

for num in {1..5}
do
   value=$(printf "%02d" $num)
   ... Use $value for your purposes
done
Comment

PREVIOUS NEXT
Code Example
Shell :: how to open a iso file in linux 
Shell :: stop raid array linux 
Shell :: android connect your phone via usb on linux - adb devices 
Shell :: where do you install composer 
Shell :: match first word regex 
Shell :: kali virtualbox guest additions check version 
Shell :: ubuntu set desktop as default bashrc 
Shell :: how to push code into github reposityory 
Shell :: wget typo3 8 
Shell :: dpkg: command not found 
Shell :: create a new repository on the command line github 
Shell :: vs code wsl unable to write file 
Shell :: pacman arch 
Shell :: turn on wiregurad ubuntu 
Shell :: linux create file without content 
Shell :: find command absolute path 
Shell :: make directory in linux 
Shell :: install wine in ubuntu 20.04 
Shell :: clone private repo github ssh 
Shell :: Running a local script on a remote machine (or remote on local) 
Shell :: yacc install in kali linux 
Shell :: Why double tapping icon doesnt minimize in ubuntu 
Shell :: get version of mongodb server 
Shell :: realtek 8852 
Shell :: sed replace 
Shell :: get client secret azure app registration powershell 
Shell :: ubuntu 20.04 aufräumen 
Shell :: aws create repository cli 
Shell :: api to access gitlab varaible 
Shell :: git add and commit in one command 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =