bogosort man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

BOGOSORT(1)							   BOGOSORT(1)

NAME
       bogosort - sorts or doesn't sort files or standard input

SYNOPSIS
       bogosort [options] [files]

DESCRIPTION
       bogosort	 sorts	files  or its standard input using the bogo-sort algo‐
       rithm.  (I won't even bother to dream up some bogus advantages here.)

       If any files are given input is taken from files in stead  of  standard
       input.

       It can also just randomise the lines in its input, allowing you to per‐
       form your own check in a loop.

OPTIONS
       bogosort accepts the following options:

       -n, --nosort
	      Don't check if the output is sorted, just exit  after  permuting
	      the lines once.

       -r, --norandom
	      If  configured with support for /dev/(u)random don't try to read
	      /dev/(u)random for seeding rand, ignored otherwise.

       -s, --seed number
	      Use number to seed rand.

       -o, --output name
	      Write output to name instead of standard output.

       -h, --help
	      Show summary of options.

       -v, --verbose
	      Output a `.' (dot) to standard error for each permutation of the
	      lines,  and  send	 some  non critical error messages to standard
	      error.

       -V, --version
	      Show version of program.

JARGON FILE ENTRY
       The following section is taken from the Jargon File.

       ...The archetypical perversely awful algorithm (as  opposed  to	bubble
       sort, which is merely the generic bad algorithm).  Bogo-sort is equiva‐
       lent to repeatedly throwing a deck of cards in the air, picking them up
       at  random, and then testing whether they are in order.	It serves as a
       sort of canonical example of awfulness.	Looking at a program and  see‐
       ing a dumb algorithm, one might say “Oh, I see, this program uses bogo-
       sort.”  Esp. appropriate for algorithms with factorial  or  super-expo‐
       nential running time in the average case and probabilistically infinite
       worst-case running time.	 Compare bogus, brute force, lasherism...

BUGS
       This program is intentionally bogus.

SEE ALSO
       sort(1), Jargon File <http://www.tuxedo.org/~esr/jargon/>.

AUTHOR
       Ulrik Haugen <qha@lysator.liu.se>.

				august 9, 2000			   BOGOSORT(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net