Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux printf leading zeros

foo=$(printf "%02d" 5)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #printf #leading #zeros
ADD COMMENT
Topic
Name
2+8 =