csvlint icon indicating copy to clipboard operation
csvlint copied to clipboard

Add support for reading CSV from shell stdin via the `-` file input

Open nickdos opened this issue 1 year ago • 0 comments

I have a shell script that tests the conversion of JSON to CSV that I'd like to use with csvlint but I don't want to force the script to save (and later delete) an actual file. Rather I'd like to pass the CSV in via stdin in the same way most command-line utilities work.

I tried:

cat file.csv | csvline -

but it throws an error file '-' does not exist.

nickdos avatar Sep 28 '23 01:09 nickdos