Files
tldr/pages.zh/common/csv2tsv.md

16 lines
477 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# csv2tsv
> 将CSV以逗号分隔文本转换为TSV以制表符分隔格式。
> 更多信息:<https://github.com/eBay/tsv-utils/blob/master/README.md#csv2tsv>。
- 从CSV转换为TSV
`csv2tsv {{path/to/input_csv1 path/to/input_csv2 ...}} > {{path/to/output_tsv}}`
- 将以字段分隔符分隔的CSV转换为TSV
`csv2tsv -c'{{field_delimiter}}' {{path/to/input_csv}}`
- 将以分号分隔的CSV转换为TSV
`csv2tsv -c';' {{path/to/input_csv}}`