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 :: bash dev/null 
Shell :: git diff more colorful 
Shell :: get username linux 
Shell :: npm command not found 
Shell :: install shutter ubuntu 
Shell :: difference between -s and --save 
Shell :: flutter doctor --android-licenses java error 
Shell :: eslint npm install 
Shell :: push an existing github repository 
Shell :: create tar file appwrite 
Shell :: laravel view.engine.resover not exists 
Shell :: Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação 
Shell :: command not found: gradlew.bat 
Shell :: extract tar 
Shell :: show detail all changes in a git log 
Shell :: linux setup pass gpg key 
Shell :: gdebi 
Shell :: microsoft teams reopen main window 
Shell :: How to revert uncommitted changes including files and folders? 
Shell :: python requirements 
Shell :: bash ls each file on a single line 
Shell :: installing firefox on debian 
Shell :: catkin_make ignore package 
Shell :: ubuntu history select 
Shell :: install tor browser on kali linux 
Shell :: brownie add new account 
Shell :: dpkg: error processing package gitweb (--configure): installed gitweb package post-instal 
Shell :: libevent ubuntu install 
Shell :: linux change default editor 
Shell :: check ram type 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =