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

21 lines
643 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.

# csvkit
> CSV文件的操作工具包。
> 另见:`csvclean`、`csvcut`、`csvformat`、`csvgrep`、`csvlook`、`csvpy`、`csvsort`、`csvstat`。
> 更多信息:<https://csvkit.readthedocs.io/en/0.9.1/cli.html>。
- 使用自定义分隔符对CSV文件运行命令
`{{command}} -d {{delimiter}} {{path/to/file.csv}}`
- 使用制表符作为分隔符对CSV文件运行命令覆盖 -d
`{{command}} -t {{path/to/file.csv}}`
- 使用自定义引号字符对CSV文件运行命令
`{{command}} -q {{quote_char}} {{path/to/file.csv}}`
- 对没有标题行的CSV文件运行命令
`{{command}} -H {{path/to/file.csv}}`