mirror of
https://github.com/wader/fq.git
synced 2024-12-24 22:05:31 +03:00
fe64530e11
Also fix string esacpe in fuzz options parser
12 lines
206 B
Markdown
12 lines
206 B
Markdown
### TSV to CSV
|
|
|
|
```sh
|
|
$ fq -d csv -o comma="\t" tocsv file.tsv
|
|
```
|
|
|
|
### Convert rows to objects based on header row
|
|
|
|
```sh
|
|
$ fq -d csv '.[0] as $t | .[1:] | map(with_entries(.key = $t[.key]))' file.csv
|
|
```
|