Tool to randomly thin out lines in a text file.
You can specify...
- Rate to output (
-r
) - Seed for random numbers (
-s
) - Line numbers to forced output (
-f
)
$ go install github.com/koron/thinout@latest
$ ./thinout -h
Usage of thinout:
-f value
specify fixed line numbers, comma separated
-r float
rate to output [0.0,1.0] (default 0.1)
-s value
seed for random numbers: "time" or int64 (default: 0)