xsv High-Performance CSV Toolkit
xsv is a fast CSV command-line toolkit written in Rust by Andrew Gallant (BurntSushi). It provides indexing, slicing, analyzing, splitting, joining, searching, sampling, and statistics operations on CSV files with exceptional speed and memory efficiency.
Installation
Use the upstream install or setup path that matches your environment:
- $ brew install xsv
- cargo install xsv
- git clone git://github.com/BurntSushi/xsv
- cargo build --release
Basic usage or getting-started notes:
search - Run a regex over CSV data. Applies the regex to each field
So, this command takes about 12 seconds to run on my machine, but we can speed
be parsed. For example, let's say you wanted to grab the last 10 records:
Extracted from upstream docs: https://raw.githubusercontent.com/BurntSushi/xsv/HEAD/README.md