some combination of sort, wc, cut and grep
Word of warning: none of these tools are CSV-aware. You can hack together something that will work for basic files, but once you get something with quotations or escapes to include commas within the text of a field, you will really want a true CSV parser.
sqlite3 can import and export CSV files directly.
Python’s csv module is great.
VisiData is a cool CLI spreadsheet/csv/database viewer.



I’ve heard of similar techniques using masks on the back of your head to discourage tiger attacks in villages close to wild tiger populations.
As I recall, it gets less effective over time because tigers are not stupid, just risk-averse. They learn with repeated exposure.
I’m going from memory. I’ll try to dig up sources when I have time.
Edit: Found it on Wikipedia: https://en.wikipedia.org/wiki/Tiger_attacks_in_the_Sundarbans#Precautions