If I run csvcut to extract a column, I get a different column depending on whether or not I choose to add line numbers to the selection.
csvcut -c1 datafile
a
x
and contrast with
csvcut -c1 -l datafile
line_number,b
1,y
I can see nothing in the documentation that says I should count the inserted line number as a column, or that the first column of the source datafile becomes column zero when line numbers are selected, so I believe this may be a bug.
This particular version is from Cygwin, where csvcut --version reports csvcut 1.0.5.
Consider the example data file,
datafile
If I run
csvcut
to extract a column, I get a different column depending on whether or not I choose to add line numbers to the selection.and contrast with
I can see nothing in the documentation that says I should count the inserted line number as a column, or that the first column of the source datafile becomes column zero when line numbers are selected, so I believe this may be a bug.
This particular version is from Cygwin, where
csvcut --version
reportscsvcut 1.0.5
.