Convert CSV records to TSV: Difference between revisions
m
simplify
m (use a file) |
m (simplify) |
||
Line 227:
def record: field | star(consume(",") | field);
def parse: {remainder: .} | record | .result;▼
def csv2tsv:
# Transform an entire file assuming jq is invoked with the -n option
|