PkgGoDev Actions/Go Go Report Card

Tool to randomly thin out lines in a text file.

You can specify…

  1. Rate to output (-r)
  2. Seed for random numbers (-s)
  3. Line numbers to forced output (-f)

How to install

$ 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)


View Github