Back to skills
extension
Category: Data & AnalyticsNo API key required

xsv 高性能 CSV 工具包

xsv 是一个由 Andrew Gallant (BurntSushi) 使用 Rust 编写的快速 CSV 命令行工具包。它提供了索引、切片、分析、分割、连接、搜索、采样和统计操作,能够在 CSV 文件上实现卓越的速度和内存效率。

personAuthor: user_3c6cb52ehubcommunity

xsv 高性能 CSV 工具包

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:

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/BurntSushi/xsv/HEAD/README.md