Linux Printf Leading Zeros

[Solved] Linux Printf Leading Zeros | Perl - Code Explorer | yomemimo.com
Question : linux printf leading zeros

Answered by : guillaume-bouvier

foo=$(printf "%02d" 5)

Source : https://stackoverflow.com/questions/18460123/how-to-add-leading-zeros-for-for-loop-in-shell | Last Update : Wed, 23 Feb 22

Answers related to linux printf leading zeros

Code Explorer Popular Question For Perl