From 2d5b94c00ace183ebc13183e85d7acf189f95c68 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Mon, 22 Oct 2018 16:51:33 -0400 Subject: [PATCH] xsv: add page (#2366) --- pages/common/xsv.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/xsv.md diff --git a/pages/common/xsv.md b/pages/common/xsv.md new file mode 100644 index 000000000..115d88de1 --- /dev/null +++ b/pages/common/xsv.md @@ -0,0 +1,27 @@ +# xsv + +> A fast CSV command line toolkit written in Rust. + +- Inspect the headers of a file: + +`xsv headers {{path/to/file.csv}}` + +- Count the number of entries: + +`xsv count {{path/to/file.csv}}` + +- Get an overview of the shape of entries: + +`xsv stats {{path/to/file.csv}} | xsv table` + +- Select a few columns: + +`xsv select {{column_a,column_b}} {{path/to/file.csv}}` + +- Show 10 random entries: + +`xsv sample {{10}} {{path/to/file.csv}}` + +- Join a column from one file to another: + +`xsv join --no-case {{column_a}} {{path/to/file/a.csv}} {{column_b}} {{path/to/file/b.csv}} | xsv table`