by tacostakohashi · 5y ago · 0 comments
cut -d, -f1,3 data.csv | grep -v '^foo'
I'm sure there are some things where you need sql/q, but this isn't one of them, and there is a lot of utility in productive with bare POSIX tools.But CSV permits quoted fields that contain literal ','. So in that case, splitting on ',' would be incorrect.