mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
557 B
Plaintext
22 lines
557 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# csv2tsv
|
|
|
|
> Convert CSV (comma-separated) text to TSV (tab-separated) format.
|
|
> More information: <https://github.com/eBay/tsv-utils/blob/master/README.md#csv2tsv>.
|
|
|
|
- Convert from CSV to TSV:
|
|
|
|
`csv2tsv {{path/to/input_csv1 path/to/input_csv2 ...}} > {{path/to/output_tsv}}`
|
|
|
|
- Convert field delimiter separated CSV to TSV:
|
|
|
|
`csv2tsv -c'{{field_delimiter}}' {{path/to/input_csv}}`
|
|
|
|
- Convert semicolon separated CSV to TSV:
|
|
|
|
`csv2tsv -c';' {{path/to/input_csv}}`
|