YS-L / csvlens

Command line csv viewer
MIT License
2.47k stars 41 forks source link

Feature request: Ability to skip lines that start with a certain character #52

Open WardBrian opened 7 months ago

WardBrian commented 7 months ago

Hi!

I regularly deal with CSV files that have "comments" in them, lines which (in my case) start with # and do not contain either a header or a comma separated row. It seems that at present this can result in csvlens believing there is only one column in the file.

Would it be reasonable to support this with an extra command line flag?

hbina commented 7 months ago

Can't you just grep them out via

grep '#' <file> -v | csvlens