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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.