I have daily files contain too many rows, one of the column sometime there value is zero, I need to delete this row if the value is zero, in Linux, I have used awk to find the column but I don`t know how to delete the row.
2,4,3,1,2,2,2
2,4,3,1,0,2,2
2,4,3,1,2,2,2
2,4,3,1,2,2,2
in the above example the second row I need to delete it because there is zero in column 5
I am sorry it`s my first day here,
to get the row number where the zero I found I used : awk -F',' '{print NR, $28;}' then delete the rows from awk output, is it a good idea or find other ideas?