tldr/pages/common/in2csv.md

22 lines
479 B
Markdown
Raw Normal View History

2016-01-22 02:04:54 +03:00
# in2csv
> Converts various tabular data formats into CSV.
> Included in csvkit.
2019-06-05 11:05:47 +03:00
> More information: <https://csvkit.readthedocs.io/en/latest/scripts/in2csv.html>.
2016-01-22 02:04:54 +03:00
- Convert an XLS file to CSV:
`in2csv {{data.xls}}`
- Convert a DBF file to a CSV file:
`in2csv {{data.dbf}} > {{data.csv}}`
- Convert a specific sheet from an XLSX file to CSV:
`in2csv --sheet={{sheet_name}} {{data.xlsx}}`
- Pipe a JSON file to in2csv:
2016-01-22 02:04:54 +03:00
`cat {{data.json}} | in2csv -f json > {{data.csv}}`