Hi, can someone please tell me how to left-pad numbers using unix.
e.g. 1234 -> 00001234
Thanks in advance for your help.
Hi, can someone please tell me how to left-pad numbers using unix.
e.g. 1234 -> 00001234
Thanks in advance for your help.
#!/bin/ksh
typeset -Z8 foo
foo=1234
echo $foo