The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: AWK program
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-18-2009
achellstrom achellstrom is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 16
This smells like homework, but here is some of the answer. First I would set up a loop to go from 1...184 and dump the awk results to a file say 'result.txt'. Next I would use the paste command to put them in your desired format.
But for the way you have listed the problem here is the answer
awk '{print $5}' file1 ...... file184>result.txt;paste -s a06.txt