sample-lines-1.1.0 is not a library.
sample-lines
samp is a fast, reliable command-line tool to randomly sample
lines from a file or standard input using reservoir
sampling. It
samples without replacement.
Good for:
- Downsampling large datasets
- Sampling logs for debugging
- Creating reproducible random subsets of data
๐ฆ Installation
If you have Rust installed, you can install samp with:
Or build from source:
๐ Usage
Here are a few examples:
|
Options
| Option | Description |
|---|---|
-n <NUM> |
Number of lines to sample (required) |
--seed <SEED> |
Optional seed for reproducible sampling |
-h, --help |
Show help message |
๐งช Testing
๐ License
Licensed under the MIT License.
๐ค Contributing
Issues and pull requests welcome! If you have an idea, a feature request, or a bug report, feel free to open an issue or PR.