Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk print records with column is not blank 2

Status
Not open for further replies.

beardown

IS-IT--Management
Aug 10, 2011
3
US
how to find/print all records that are not blank in column 2
it must be some variation of this

# delete ALL blank lines from a file (same as "grep '.' ")
awk NF
awk '/./'

 
What about this ?
awk '$2'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top