My CSV file is divided by tab, and I want to filter those rows that have all the entries (in 16 columns) of 0. I am doing this now
awk '$1 != 0 && $2 != 0 && ....omitted && $16 != 0 {print $0}' file.csv > newFile.csv
As you can see, it is so tedious to enter the same conditions for all 16 columns. Is there an easier way?
source
share