If I have a csv file, is there a quick bash way to print out the contents of only any single column? It is safe to assume that each row has the same number of columns, but each column's content would have different length.
You could use awk for this. Change '$2' to the nth column you want.
awk -F ""*,"*" '{print $2}' textfile.csv
2.1m questions
2.1m answers
60 comments
57.0k users