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 split a csv file with csvkit?
- How to remove duplicates with csvkit?
- How to select specific columns with csvkit?
- How to fetch unique values with csvkit?
- How to convert a tsv file to csv with csvkit?
- How to use csvkit on Windows?
- How to convert a csv file to tab delimited with csvkit?
- How to update specific records using csvkit?
- How to reorder columns with csvkit?
See more codes...