The headers
command displays the column names of given CSV file.
So, given this particular file:
people.csv
name | surname |
---|---|
John | Black |
Lucy | Red |
Guillaume | Orange |
The following command:
xan headers people.csv
Will return:
0 name
1 surname
Note that the command will highlight in red duplicated column names to help you spot them better as they can be cumbersome sometimes.
Using the -j/--just-names
you can avoid printing the column indices:
xan headers -j people.csv
Will return:
name
surname