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.
Bash – How to extract one column of a csv file
bashcsvextract
Related Topic
- Bash – How to check if a string contains a substring in Bash
- Mysql – How to output MySQL query results in CSV format
- Bash – How to check if a program exists from a Bash script
- Bash – How to tell if a regular file does not exist in Bash
- Bash – Extract filename and extension in Bash
- Mysql – How to import CSV file into a MySQL table
- Bash – How to concatenate string variables in Bash
- Python – Read specific columns from a csv file with csv module
Best Answer
You could use awk for this. Change '$2' to the nth column you want.