entrylevel
Technical User
Hi all,
is there a simple way in /bin/sh to append certain amount zeros at the begining of a string or at the end of a string.
say I want to add $var=5 zeros at the begining of the string "teststring", make it like "00000teststring"
and append $var=3 zeros at the end of the string "teststring", make it as "teststring000"
thanks and regards!
is there a simple way in /bin/sh to append certain amount zeros at the begining of a string or at the end of a string.
say I want to add $var=5 zeros at the begining of the string "teststring", make it like "00000teststring"
and append $var=3 zeros at the end of the string "teststring", make it as "teststring000"
thanks and regards!