Magic Pipes
Documentation
Login

mpcsv-write [-T|D delim-char]

Reads sexprs from standard input, which must be lists, and writes them to standard output as comma-separted-values values terminated by a newline (or, if a delimiter char is specified, values separated by that delimiter; or if -T is specified, tab-separated values)

Quotes values containing the delimiter or newlines as per the Chicken CSV egg.

Examples

mpcsv-read < test.csv | mpmap reverse | mpcsv-write > out.csv