/random-script

The random script is for generating random line from sample .txt file.

Primary LanguageShellMIT LicenseMIT

random script

The random script is for generating random line from sample .txt file.

usage:

shuf -n<num> sample.txt
  -e, --echo                treat each ARG as an input line
  -i, --input-range=LO-HI   treat each number LO through HI as an input line
  -n, --head-count=COUNT    output at most COUNT lines
  -o, --output=FILE         write result to FILE instead of standard output
      --random-source=FILE  get random bytes from FILE
  -r, --repeat              output lines can be repeated
  -z, --zero-terminated     end lines with 0 byte, not newline