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
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Append 0 for single digit entered from command line
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-24-2007
funksen
Registered User
Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
Code:
#!/usr/bin/ksh echo $* |
sed
's/ \|^/ /g ; s/[^1-9]\([1-9]\)[^1-9]/ 0\1 /g; s/ / /g'
should work too
funksen
View Public Profile
Find all posts by funksen