EnglishFrenchSpanish

OnWorks favicon

unsort - Online in the Cloud

Run unsort in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command unsort that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


unsort — reorder lines in a file in semirandom ways

SYNOPSIS


unsort [-hvrpncmMsz0l] [--help] [--version] [--random] [--heuristic] [--identity]
[--filenames[=profile]] [--separator sep] [--concatenate] [--merge] [--merge-random]
[--seed integer] [--zero-terminated] [--null] [--linefeed] [file ...]

DESCRIPTION


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
-h, --help
Display a concise summary of the available options and argument syntax.

-v, --version
Display version and copyright information.

-r, --random
Use the Mersenne Twister based randomization algorithm.

-p, --heuristic
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.

-n, --identity
Do not reorder lines in the input. Useful if you just want to merge the files.

-f, --filenames[=profile]
Assumes the input has a structure similar to filenames and apply randomization
seperately to each directory level.

An example would be a list of mp3 files where the top level is the genre, the second
level is the name of the artist and the third level is the name of the album. The
--filenames option allows you to randomize the list with different randomization
strategies for each of the artist, album and track levels.

Two types of randomization are supported: simple and proportional. Simple
randomization picks one entry from each directory at that level in a round-robin
fashion. If one directory contains fewer entries than the others, it will run out
and stop appearing at some point before the end of the output.

Proportional randomization will spread the directory entries evenly over the output.

The profile argument can be used to specify which randomization types to use. It is
a concatenation of the randomization types to use for each level. Use 1 for simple
randomization and n for proportional randomization. If the input has more levels
than specified, the last character determines the randomization type for all
subsequent levels.

For example, --filenames=n1n means: use proportional randomization for the genre,
use simple randomization for the artists and use proportional randomization again
for the album names and all levels below that.

-S, --separator sep
The directory separator to use with -f. Defaults to ‘/’.

-r, --concatenate
Concatenate all input files then apply the shuffling algorithm to the result as a
whole.

-m, --merge
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.

-M, --merge-random
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.

-l, --linefeed
Lines are terminated with a \n character. This is the default.

Use unsort online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 2
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 3
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 4
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • 5
    Sky Chart / Cartes du Ciel
    Sky Chart / Cartes du Ciel
    SkyChart is a software to draw chart of
    the night sky for the amateur astronomer
    from a bunch of stars and nebulae
    catalogs. See main web page for full
    download...
    Download Sky Chart / Cartes du Ciel
  • 6
    GSmartControl
    GSmartControl
    GSmartControl is a graphical user
    interface for smartctl. It allows you to
    inspect the hard disk and solid-state
    drive SMART data to determine its
    health, as w...
    Download GSmartControl
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqmktop
    coqmktop
    coqmktop - The Coq Proof Assistant
    user-tactics linker ...
    Run coqmktop
  • 4
    coqtop
    coqtop
    coqtop - The Coq Proof Assistant
    toplevel system ...
    Run coqtop
  • 5
    g.copygrass
    g.copygrass
    g.copy - Copies available data files in
    the current mapset search path to the
    user�s current mapset. KEYWORDS:
    general, map management ...
    Run g.copygrass
  • 6
    g.dirsepsgrass
    g.dirsepsgrass
    g.dirseps - Internal GRASS utility for
    converting directory separator
    characters. Converts any directory
    separator characters in the input string
    to or from na...
    Run g.dirsepsgrass
  • More »

Ad