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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rhusain

    Remove NULLS from count

    Hi, I applied your example on the following file - ProSource 2006.1 21 Compare Viewer ProSource 2006.1 18 PTM GUI ProSource 2.5 20 Server Defect ProSource 3.0 Finder Adaptor Defect ProSource 3.0 22 Compare Viewer ProSource 2.0 17 OpenWorks Adaptor ProSource...
  2. rhusain

    Remove NULLS from count

    Hi, I tried awk '{if((NF==4)&&($2>20)) print $2}' it returns 0 rows. No error is returned. Thanks, Riyaz
  3. rhusain

    Remove NULLS from count

    I have a file that looks like this- PSM 22 DEFECT OPEN PSR 19 DEFECT OPEN PSM DEFECT OPEN PSQ 20 DEFECT OPEN PSM 24 DEFECT OPEN When I run this command - printf '%d\n' `cat <file_name> | awk '{if($2>20) print $2}' | wc -l' I get count of 3...

Part and Inventory Search

Back
Top