The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-24-2007
funksen funksen is offline
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
Reply With Quote