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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 02-04-2008
sjday sjday is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 9
Possible solution

Create a awk file called neatcols with the following contents

{
printf "%-20s %s\n", \
$1, substr($0, index($0,$2))
}

then run it in

awk -f neatcols file3 > file4