A BSD gshuf(1) implementation.
Go to file
styan a6331c0fb6 Add missing EXIT STATUS section 2020-06-10 23:13:29 +00:00
LICENSE Add the man-page 2020-05-11 01:25:23 +00:00
Makefile Fix the default MANDIR 2020-05-17 00:23:55 +00:00
README Add missing EXIT STATUS section 2020-06-10 23:13:29 +00:00
shuf.1 Add missing EXIT STATUS section 2020-06-10 23:13:29 +00:00
shuf.c Add the man-page 2020-05-11 01:25:23 +00:00

README

SHUF(1)			 General Commands Manual		 SHUF(1)

NAME
     shuf - shuffle lines or numbers

SYNOPSIS
     shuf [-rz] [-n count] [-o file] file ...
     shuf -e [-rz] [-n count] [-o file] arg ...
     shuf -i range [-rz] [-n count] [-o file]

DESCRIPTION
     The shuf command shuffles lines, arguments (-e), or numbers (-i)
     and prints out the resulting list.

     The options are as follows:

     -e	     Shuffle and print the given arguments.

     -i	     Shuffle and print the list of positive integers from the
	     given range, where range takes the from of two positive
	     integers separated by a dash (`-').

     -n count
	     Only print count lines of output.

     -o file
	     Write to file instead of the standard output.

     -r	     Repeat the shuffling and printing steps infinitely, or
	     until count is reached.

     -z	     Use the NUL character as the line-separator for both
	     reading and printing.

SEE ALSO
     sort(1), jot(1)

EXIT STATUS
     The shuf utility exits 0 on success, and >0 if an error occurs.

			      June 10, 2020