Back to discussionComment by fiddlerwoaroof[-]fiddlerwoaroof5 years ago1 reply#Or: head -n5 data/a.csv | tv[-]eli5 years ago2 replies#Unless your csv has embedded line breaks[-]flusteredBias5 years ago1 reply#Can you give an example of what you mean? If it breaks tv then I would like to add it to the automated tests and see if we can work on it.eli5 years ago1 reply#No sorry, I assume tv is fine. The problem is in assuming `head -n5` gives you 5 rows and piping that into tv.Continue this thread — 1 replyIncRnd5 years ago#If tv works with embedded EOLs, you can do this: cat data/a.csv | tv | head -n5 It is more resource intensive, but it pushes the problem you mentioned onto tv. If tv doesn't work with embedded EOLs, then you need to fix your data or fix your tool.
flusteredBias5 years ago1 reply#Can you give an example of what you mean? If it breaks tv then I would like to add it to the automated tests and see if we can work on it.
eli5 years ago1 reply#No sorry, I assume tv is fine. The problem is in assuming `head -n5` gives you 5 rows and piping that into tv.
IncRnd5 years ago#If tv works with embedded EOLs, you can do this: cat data/a.csv | tv | head -n5 It is more resource intensive, but it pushes the problem you mentioned onto tv. If tv doesn't work with embedded EOLs, then you need to fix your data or fix your tool.
Continue this thread — 1 reply