The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




Thread: awk help needed
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-18-2008
insamniac insamniac is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 14
this is a sloppy answer, so it's not good if this is a homework assignment, but you can do:

TEST=$(head -3 BATCH007.TXT | tail -1l | awk '{FS=","} {print $2}')