Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

31
csvformat Normal file
View File

@@ -0,0 +1,31 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# csvformat
> Convert a CSV file to a custom output format.
> Included in csvkit.
> More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvformat.html>.
- Convert to a tab-delimited file (TSV):
`csvformat -T {{data.csv}}`
- Convert delimiters to a custom character:
`csvformat -D "{{custom_character}}" {{data.csv}}`
- Convert line endings to carriage return (^M) + line feed:
`csvformat -M "{{
}}" {{data.csv}}`
- Minimize use of quote characters:
`csvformat -U 0 {{data.csv}}`
- Maximize use of quote characters:
`csvformat -U 1 {{data.csv}}`