1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/xsv.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

28 lines
636 B
Markdown

# xsv
> A CSV command-line toolkit written in Rust.
> More information: <https://github.com/BurntSushi/xsv>.
- 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`