You could use awk for this. Change ‘$2’ to the nth column you want.
awk -F "\"*,\"*" '{print $2}' textfile.csv
More Related Contents:
- How to parse a CSV in a Bash script?
- Parsing a CSV file using gawk
- Split CSV files into smaller files but keeping the headers?
- Bash: Parse CSV with quotes, commas and newlines
- using bash (sed/awk) to extract rows AND columns in CSV files?
- How to delete rows from a csv file based on a list values from another file?
- Input data to a shell script [closed]
- How to escape single quotes within single quoted strings
- When do we need curly braces around shell variables?
- Why does my Bash code fail when I run it with ‘sh’?
- Accessing bash command line args $@ vs $*
- Replace one substring for another string in shell script
- How can I escape a double quote inside double quotes?
- How can I add numbers in a Bash script?
- Tilde in path doesn’t expand to home directory
- Bash syntax error: unexpected end of file
- How to assign the output of a Bash command to a variable? [duplicate]
- Getting an “ambiguous redirect” error
- How to append output to the end of a text file
- Why does my Bash counter reset after while loop
- Escape dollar sign in string by shell script
- Is there a better way to run a command N times in bash?
- Bash script error [: !=: unary operator expected
- How do I prompt a user for confirmation in bash script? [duplicate]
- Piping tail output though grep twice
- bash set -e and i=0;let i++ do not agree
- Assign string containing null-character (\0) to a variable in Bash
- Counting lines or enumerating line numbers so I can loop over them – why is this an anti-pattern?
- How do I integrate MSYS2 shell into Visual studio code on Window?
- How to properly nest Bash backticks