csvkitHow to specify a delimiter in csvkit?
csvkit is a suite of command-line tools for converting to and working with CSV, the comma-separated values format. It can be used to specify a delimiter in csvkit.
Example code
csvcut -d '|' input.csv
Output example
column1|column2|column3
value1|value2|value3
Code explanation
csvcut
: the command to specify a delimiter-d
: the flag to indicate the delimiter'|'
: the delimiter to be usedinput.csv
: the input file
Helpful links
More of Csvkit
- How to select specific columns with csvkit?
- How to remove duplicates with csvkit?
- How to convert a csv file to tab delimited with csvkit?
- How to rename a column with csvkit?
- How to update specific records using csvkit?
- How to convert a tsv file to csv with csvkit?
- How to split a csv file with csvkit?
- How to reorder columns with csvkit?
- How to merge columns with csvkit?
- How to skip the first line with csvkit?
See more codes...