mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 22:15:26 +02:00
added csvformat
This commit is contained in:
parent
b3710bc9a1
commit
7f5bc2fec7
1 changed files with 24 additions and 0 deletions
24
pages/common/csvformat.md
Normal file
24
pages/common/csvformat.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# csvformat
|
||||
|
||||
> Convert a CSV file to a custom output format.
|
||||
> Included in csvkit.
|
||||
|
||||
- Convert to a tab-delimited file:
|
||||
|
||||
`csvformat -T {{data.csv}}`
|
||||
|
||||
- Convert delimiters to a custom character:
|
||||
|
||||
`csvformat -D "{{custom_character}}" {{data.csv}}`
|
||||
|
||||
- Convert line endings to carriage return + line feed:
|
||||
|
||||
`csvformat -M "{{\r\n}}" {{data.csv}}`
|
||||
|
||||
- Convert to minimal use of quote characters:
|
||||
|
||||
`csvformat -U 0 {{data.csv}}`
|
||||
|
||||
- Convert to maximum use of quote characters:
|
||||
|
||||
`csvformat -U 1 {{data.csv}}`
|
Loading…
Add table
Reference in a new issue