How to select rows based on specific column values - shell script

Viewed 21

I am new to shell script and I'm not sure why this code isn't running. I have tried over 50 variations of this line at this point using if or int($2), but I keep getting errors. Is there another way to do this?

awk -F , '$1 == "Yes" && $2 == "Yes" { print }' data1.csv > data2.csv
head data2.csv
0 Answers
Related