2016-01-21 23:04:54 +00:00
|
|
|
# in2csv
|
|
|
|
|
2024-04-25 23:58:21 +01:00
|
|
|
> Convert various tabular data formats to CSV.
|
2016-01-21 23:04:54 +00:00
|
|
|
> Included in csvkit.
|
2019-06-05 09:05:47 +01:00
|
|
|
> More information: <https://csvkit.readthedocs.io/en/latest/scripts/in2csv.html>.
|
2016-01-21 23:04:54 +00: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}}`
|
|
|
|
|
2016-01-24 07:10:38 +00:00
|
|
|
- Pipe a JSON file to in2csv:
|
2016-01-21 23:04:54 +00:00
|
|
|
|
2016-01-24 07:10:38 +00:00
|
|
|
`cat {{data.json}} | in2csv -f json > {{data.csv}}`
|