mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 19:50:46 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
26
tldr/in2csv
Normal file
26
tldr/in2csv
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# in2csv
|
||||
|
||||
> Converts various tabular data formats into CSV.
|
||||
> Included in csvkit.
|
||||
> More information: <https://csvkit.readthedocs.io/en/latest/scripts/in2csv.html>.
|
||||
|
||||
- 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:
|
||||
|
||||
`cat {{data.json}} | in2csv -f json > {{data.csv}}`
|
||||
Reference in New Issue
Block a user