koron / thinout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

koron/thinout

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

Usage

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

About

License:MIT License


Languages

Language:Go 82.7%Language:Makefile 17.3%