csvkitHow to skip the first line with csvkit?
csvkit is a suite of command-line tools for working with CSV files. It can be used to skip the first line of a CSV file with the csvcut
command.
Example code
csvcut -n -K 1 input.csv
Output example
column1,column2,column3
value1,value2,value3
Code explanation
csvcut
: the command to cut columns from a CSV file-n
: the flag to skip the header line-K 1
: the flag to skip the first lineinput.csv
: the input CSV file
Helpful links
More of Csvkit
- How to fetch unique values with csvkit?
- How to convert a tsv file to csv with 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 merge columns with csvkit?
- How to split a csv file with csvkit?
- How to rename a column with csvkit?
- How to sort a csv file with csvkit?
See more codes...