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 change the encoding in csvkit?
- How to update specific records using csvkit?
- How to extract a column from a CSV file using csvkit?
- How to convert a csv file to tab delimited with csvkit?
- How to split a csv file with csvkit?
- How to sort a csv file with csvkit?
- How to merge columns with csvkit?
- How to diff two CSV files using csvkit?
- How to fetch unique values with csvkit?
See more codes...