The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Append 0 for single digit entered from command line
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Append 0 for single digit entered from command line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-24-2007
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
#!/bin/ksh echo "To pad a 0 before digits from 1-9" for i in $* do printf "%02s\n" $i done
-->
Code:
#!/bin/ksh echo "To pad a 0 before digits from 1-9" for i in $* do printf "%02s\n" $i done
robotronic
View Public Profile
Find all posts by robotronic
Find robotronic's past nominations received
Find robotronic's present nominations given