BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.35k stars 321 forks source link

sample the whole file #328

Open zachmayer opened 1 year ago

zachmayer commented 1 year ago

I'd like to sample the entire file— how do I do that? Currently I need to count the rows first, which adds an extra step

BurntSushi commented 1 year ago

There's an example of random sampling in the README. Search for xsv sample.