Open DefaultGen opened 5 months ago
As an even simpler test, I made a csv with a header, then foo,bar
repeated 20,000 times:
1,2
foo,bar
foo,bar
foo,bar
The resulting xsv table
output has numerous no-tab lines that say foobar
. Interestingly if I remove the 1,2
header, I don't see the issue even if I repeat it 10M times.
You'll probably have better luck with https://github.com/jqnatividad/qsv/ -- this hasn't been updated in over 6 years.
You'll probably have better luck with https://github.com/jqnatividad/qsv/ -- this hasn't been updated in over 6 years.
Thanks a lot, I hadn't found that! The qsv table
command works perfect for me.
Hi, I'm trying to use xsv 0.13.0 as a replacement for the unix
column
command in a script because it is much faster. However I get lines with strange spacing even with what I think is simple, although long, input.I have a simple two column .csv like this:
If I run
cat simple_example.csv | xsv table > outputFile
, I can see the following weird lines (there's a few more examples of both issues throughout the output):With more complex data, the output errors happen much more frequently (in attached
complex_example.csv
, some errors start around line 1113 for example).I can reproduce this with any sufficiently large data set. I've attached the two randomly generated data sets. I understand
xsv table
is probably just meant to print a few human readable lines to the terminal, so if this kind of processing isn't in scope for the project I'll stick to the venerablecolumn
:-)I'm on Arch Linux with xsv installed from pacman. I reproduced this on Debian as well.
simple_example.csv complex_example.csv