1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 07:55:50 +02:00
tldr/pages/common/xsv.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

617 B

xsv

A CSV 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 {{column1,column2}} {{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 {{column1}} {{path/to/file1.csv}} {{column2}} {{path/to/file2.csv}} | xsv table