%csv2jsonl(1) user manual | version 1.3.5 f86e208 % R. S. Doiel % 2026-02-12
csv2jsonl
csv2jsonl [OPTIIONS]
csv2jsonl reads CSV from stdin and writes a JSON-L to stdout. JSON output is one object per line. See https://jsonlines.org.
-help : display help
-license : display license
-version : display version
-d, -delimiter : set the delimter character
-examples : display example(s)
-fields-per-record : Set the number of fields expected in the CSV read, -1 to turn off
-i, -input : input filename
-nl, -newline : include trailing newline in output
-o, -output : output filename
-quiet : suppress error output
-reuse-record : reuse the backing array
-trim-leading-space : trim leading space in fields for CSV input
-use-header : treat the first row as field names
-use-lazy-quotes : use lazy quotes for for CSV input
-for-dataset COLUMN_NO : if COLUMN_NO is greater than -1 then, generate a dataset load compatible version of the CSV file using COLUMN_NO as key.
Convert data1.csv to data1.jsonl using Unix pipes.
cat data1.csv | csv2jsonl > data1.jsonlConvert data1.csv to JSON line (one object line per blob)
csv2jsonl data1.csv