unsort — reorder lines in a file in semirandom ways
unsort [−hvrpncmMsz0l] [−−help] [−−version] [−−random] [−−heuristic] [−−identity] [−−concatenate] [−−merge] [−−merge-random] [−−seed integer] [−−zero-terminated] [−−null] [−−linefeed] [file ...]
unsort prints the lines in the input files (or standard input) in semi-random order. Available algorithms are a Mersenne Twister based PRNG and a heuristic algorithm that aims to create a subjective even distribution.
Command line options
Display a concise summary of the available options and argument syntax.
Display version and copyright information.
Use the Mersenne Twister based randomization algorithm.
Use the heuristic "shuffling" algorithm which permutes the lines in such a way that they’re spread more or less evenly in the output. This is the default.
Do not reorder lines in the input. Useful if you just want to merge the files.
Concatenate all input files then apply the shuffling algorithm to the result as a whole.
Shuffle all input files seperately then merge the result. Equal-sized files will be merged in the order in which they appear on the command line.
Shuffle all input files seperately then merge the result. Equal-sized files will be merged in random order. This is the default.
−s, −−seed integer
Use this integer as a seed, instead of random data from the environment.
−z, −−zero-terminated, −0, −−null
Lines are terminated with a \0 character.
Lines are terminated with a \n character. This is the default.
Free Software February 26, 2011 Free Software