This is how you zero pad a numerical variable in bash.
for ((x=1;x<=31;x+=1)); do echo `printf "%02d" $x`; done
Byte sized tech know-how.
This is how you zero pad a numerical variable in bash.
for ((x=1;x<=31;x+=1)); do echo `printf "%02d" $x`; done
Copyright © 2024 Txt