![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls command output in single line | arsheshadri | AIX | 7 | 04-28-2008 11:50 AM |
| Single line file editing command? | gator76 | Shell Programming and Scripting | 1 | 04-03-2008 07:09 AM |
| run command Unix on a single line | Riddick61 | UNIX for Dummies Questions & Answers | 8 | 02-04-2008 10:19 AM |
| single line command | roshanjain2 | Shell Programming and Scripting | 4 | 02-07-2007 01:33 AM |
| getting rid of $ when entered at the command line | bashirpopal | Shell Programming and Scripting | 2 | 04-04-2003 07:41 AM |
|
|
LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|