Entering edit mode
6.6 years ago
geneart$$
▴
50
Hi I have a file with the following format:
filename is foo.txt
abcd 1 0 0 2
abef 2 0 0 0
able 2 1 2 0
able 1 0 0 0
efgh 0 0 0 0
I wrote an awk script to delete the row with all columns with 0. But I am getting syntax error. SO I am sure this is very simple.
Please can anytime help me fix this?
awk 'BEGIN{i=1; While($2==0)($3==0)($4==0) {print $0} }' foo.txt