DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
variable replacement bash zero padding
for num in {1..5} do value=$(printf "%02d" $num) ... Use $value for your purposes done
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#variable
#replacement
#bash
#padding
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit