A tiny cut-like utilty for extractings from CVS files or streams.
csv-cut [OPTION...] FILE [FILE] ...
Usage resembles the Unix tool cut(1), but is limited to the selection of delimiter separated fields. Unlike cut(0), input is parsed and output is formatted according to RFC4180 using minimal quoting. Unlike cut(0), parsing stdin is currently not supported, due to an issue with csv-parser's chunked read mechanism.
-h, --help
: Print usage
-d, --delimiter arg
: Input delimiter [\t,:;|] (default: ,)
-f, --fields arg
: Comma separated list of fields (default: "")
--output-delimiter arg
: Output delimiter [\t,:;|] (default: same as input delimiter)
cvs-cut makes use of header libraries provided in the include directory:
- Command line processing: from cxxopts, release 3.0.0, MIT license.
- CVS parsing and formatting: from Vince's csv-parser, release 2.1.3, MIT license.