The following is the typicall AWK ways to access field, by printing lines where the value of second column is 0 (zero).foo 1.02 bar 0 qux 2.33 tuq 0
What's Perl one-liner way to do it?$ awk '$2==0; {print}' mydat.txt
In reply to Accessing Tab Delimited Field in Perl One-Liner by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |