ocaml-csv icon indicating copy to clipboard operation
ocaml-csv copied to clipboard

Default reading from SDTIN

Open jdferreira opened this issue 4 years ago • 0 comments

Could the code be changed so that if no filename is specified (including not specifying "-"), csvtool reads from standard input?

My expectation was that this would work like the following example:

$ cat my.csv
digit,name
1,one
2,two

$ csvtool col 2 my.csv | csvtool drop 1 # Note the lack of `-`
one
two

jdferreira avatar Feb 22 '21 17:02 jdferreira