tldr/pages/common/csvkit.md

22 lines
646 B
Markdown
Raw Normal View History

2019-11-25 17:50:45 +00:00
# csvkit
> Manipulation toolkit for CSV files.
2023-05-20 02:14:35 +01:00
> See also: `csvclean`, `csvcut`, `csvformat`, `csvgrep`, `csvlook`, `csvpy`, `csvsort`, `csvstat`.
2019-11-25 17:50:45 +00:00
> More information: <https://csvkit.readthedocs.io/en/0.9.1/cli.html>.
- Run a command on a CSV file with a custom delimiter:
2023-05-20 02:14:35 +01:00
`{{command}} -d {{delimiter}} {{path/to/file.csv}}`
2019-11-25 17:50:45 +00:00
- Run a command on a CSV file with a tab as a delimiter (overrides -d):
2023-05-20 02:14:35 +01:00
`{{command}} -t {{path/to/file.csv}}`
2019-11-25 17:50:45 +00:00
- Run a command on a CSV file with a custom quote character:
2023-05-20 02:14:35 +01:00
`{{command}} -q {{quote_char}} {{path/to/file.csv}}`
2019-11-25 17:50:45 +00:00
- Run a command on a CSV file with no header row:
2023-05-20 02:14:35 +01:00
`{{command}} -H {{path/to/file.csv}}`