The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



Thread: awk filtering ?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-14-2007
varungupta varungupta is offline
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Exclamation awk filtering ?

I have a Ques. Regarding awk

I have few strings in a file, like..

ABC
DEF_ABC
GHI_ABC
GHI

Now I want string which has only 'ABC', not the part of any other string as it is also present in 'DEF_ABC'

Output should be ABC

Please guide me asap !!

Thanks
Reply With Quote
Remove advertisements
!!
!! Forum Sponsor