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 > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: sed or awk?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-13-2008
NetJones's Avatar
NetJones NetJones is offline
Registered User
  
 

Join Date: Mar 2008
Location: Dumaguete, Negros Oriental, P.I.
Posts: 8
Sample line

PO Date Product Manufacturer UPC Dept Loc Comment

108224 061007 12mm bolt ABC Co. xxxxxxxx Eng Cebu Jason


I want to display just the PO in the first column when doing a query with grep on the date....if I grep 061007 | awk what should I put after awk to get only the PO number back?

Thanks for all your help.