From 7f5bc2fec7beee2453ff1bdfc1811d9936292c8d Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:03:08 -0500 Subject: [PATCH] added csvformat --- pages/common/csvformat.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/csvformat.md diff --git a/pages/common/csvformat.md b/pages/common/csvformat.md new file mode 100644 index 000000000..e05e29628 --- /dev/null +++ b/pages/common/csvformat.md @@ -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}}`