![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls command output in single line | arsheshadri | AIX | 7 | 04-28-2008 02:50 PM |
| Single line file editing command? | gator76 | Shell Programming and Scripting | 1 | 04-03-2008 10:09 AM |
| run command Unix on a single line | Riddick61 | UNIX for Dummies Questions & Answers | 8 | 02-04-2008 02:19 PM |
| single line command | roshanjain2 | Shell Programming and Scripting | 4 | 02-07-2007 05:33 AM |
| getting rid of $ when entered at the command line | bashirpopal | Shell Programming and Scripting | 2 | 04-04-2003 10:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Append 0 for single digit entered from command line
I have a script like this--
#!/bin/ksh echo "To pad a 0 before digits from 1-9" for i in $* do echo $i | sed 's/[1-9]/'0[1-9]'/g' done I run this script as ksh name 1 2 23 34 The output should be 01 02 23 34 Help me in modifying this script. Thanks Namish |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|