Man page - rust-sort(1)
Packages contas this manual
- rust-vdir(1)
- rust-basename(1)
- rust-base64(1)
- rust-rm(1)
- rust-uname(1)
- rust-rmdir(1)
- rust-join(1)
- rust-nproc(1)
- rust-realpath(1)
- rust-tac(1)
- rust-false(1)
- rust-unexpand(1)
- rust-more(1)
- rust-link(1)
- rust-split(1)
- rust-id(1)
- rust-date(1)
- rust-printf(1)
- rust-chcon(1)
- rust-who(1)
- rust-nl(1)
- rust-du(1)
- rust-fmt(1)
- rust-pinky(1)
- rust-chroot(1)
- rust-df(1)
- rust-nohup(1)
- rust-stat(1)
- rust-dircolors(1)
- rust-nice(1)
- rust-tsort(1)
- rust-dirname(1)
- rust-touch(1)
- rust-basenc(1)
- rust-dir(1)
- rust-tail(1)
- rust-mkdir(1)
- rust-dd(1)
- rust-true(1)
- rust-wc(1)
- rust-hashsum(1)
- rust-head(1)
- rust-uptime(1)
- rust-expr(1)
- rust-sum(1)
- rust-timeout(1)
- rust-hostname(1)
- rust-test(1)
- rust-chgrp(1)
- rust-runcon(1)
- rust-ln(1)
- rust-comm(1)
- rust-truncate(1)
- rust-shred(1)
- rust-coreutils(1)
- rust-expand(1)
- rust-hostid(1)
- rust-printenv(1)
- rust-cut(1)
- rust-tr(1)
- rust-ptx(1)
- rust-chown(1)
- rust-paste(1)
- rust-groups(1)
- rust-pwd(1)
- rust-users(1)
- rust-pathchk(1)
- rust-ls(1)
- rust-arch(1)
- rust-unlink(1)
- rust-mktemp(1)
- rust-cksum(1)
- rust-readlink(1)
- rust-od(1)
- rust-seq(1)
- rust-yes(1)
- rust-cp(1)
- rust-sync(1)
- rust-pr(1)
- rust-logname(1)
- rust-fold(1)
- rust-cat(1)
- rust-install(1)
- rust-chmod(1)
- rust-echo(1)
- rust-mknod(1)
- rust-base32(1)
- rust-mkfifo(1)
- rust-sleep(1)
- rust-whoami(1)
- rust-tee(1)
- rust-shuf(1)
- rust-uniq(1)
- rust-tty(1)
- rust-sort(1)
- rust-kill(1)
- rust-mv(1)
- rust-env(1)
- rust-csplit(1)
- rust-numfmt(1)
apt-get install rust-coreutils
Manual
| sort(1) | General Commands Manual | sort(1) |
NAME
sort - Display sorted concatenation of all FILE(s). With no FILE, or when FILE is -, read standard input.
SYNOPSIS
sort [--help] [--version] [--sort] [-h|--human-numeric-sort] [-M|--month-sort] [-n|--numeric-sort] [-g|--general-numeric-sort] [-V|--version-sort] [-R|--random-sort] [-d|--dictionary-order] [-m|--merge] [-c|--check] [-C|--check-silent] [-f|--ignore-case] [-i|--ignore-nonprinting] [-b|--ignore-leading-blanks] [-o|--output] [-r|--reverse] [-s|--stable] [-u|--unique] [-k|--key] [-t|--field-separator] [-z|--zero-terminated] [--parallel] [-S|--buffer-size] [-T|--temporary-directory] [--compress-program] [--batch-size] [--files0-from] [--debug] [files]
DESCRIPTION
Display sorted concatenation of all FILE(s). With no FILE, or when FILE is -, read standard input.
OPTIONS
- --help
- Print help information.
- --version
- Print version information.
- --sort
-
[possible values: general-numeric, human-numeric, month, numeric, version, random]
- -h, --human-numeric-sort
- compare according to human readable sizes, eg 1M > 100k
- -M, --month-sort
- compare according to month name abbreviation
- -n, --numeric-sort
- compare according to string numerical value
- -g, --general-numeric-sort
- compare according to string general numerical value
- -V, --version-sort
- Sort by SemVer version number, eg 1.12.2 > 1.1.2
- -R, --random-sort
- shuffle in random order
- -d, --dictionary-order
- consider only blanks and alphanumeric characters
- -m, --merge
- merge already sorted files; do not sort
- -c, --check
- check for sorted input; do not sort
[possible values: silent, quiet, diagnose-first]
- -C, --check-silent
- exit successfully if the given file is already sorted, and exit with status 1 otherwise.
- -f, --ignore-case
- fold lower case to upper case characters
- -i, --ignore-nonprinting
- ignore nonprinting characters
- -b, --ignore-leading-blanks
- ignore leading blanks when finding sort keys in each line
- -o, --output=FILENAME
- write output to FILENAME instead of stdout
- -r, --reverse
- reverse the output
- -s, --stable
- stabilize sort by disabling last-resort comparison
- -u, --unique
- output only the first of an equal run
- -k, --key
- sort by a key
- -t, --field-separator
- custom separator for -k
- -z, --zero-terminated
- line delimiter is NUL, not newline
- --parallel=NUM_THREADS
- change the number of threads running concurrently to NUM_THREADS
- -S, --buffer-size=SIZE
- sets the maximum SIZE of each segment in number of sorted items
- -T, --temporary-directory=DIR
- use DIR for temporaries, not $TMPDIR or /tmp
- --compress-program=PROG
- compress temporary files with PROG, decompress with PROG -d; PROG has to take input from stdin and output to stdout
- --batch-size=N_MERGE
- Merge at most N_MERGE inputs at once.
- --files0-from=NUL_FILES
- read input from the files specified by NUL-terminated NUL_FILES
- --debug
- underline the parts of the line that are actually used for sorting
- [files]
EXTRA
The key format is FIELD[.CHAR][OPTIONS][,FIELD[.CHAR]][OPTIONS].
Fields by default are separated by the first whitespace after a non-whitespace character. Use -t to specify a custom separator. In the default case, whitespace is appended at the beginning of each field. Custom separators however are not included in fields.
FIELD and CHAR both start at 1 (i.e. they are 1-indexed). If there is no end specified after a comma, the end will be the end of the line. If CHAR is set 0, it means the end of the field. CHAR defaults to 1 for the start position and to 0 for the end position.
Valid options are: MbdfhnRrV. They override the global options for this key.
VERSION
v0.0.30
| sort 0.0.30 |