sort(1)

πŸ“¦
version 0.7.0 Β· 4 versions
, in epel 10, fedora 43

πŸ’– sort(1) β€” the manual page, but make it cute πŸ’–

okay bestie, so this is sort from the General Commands Manual, and honestly? it's the moment. it's giving main character energy for your text files. let's get into it 🫢


✨ NAME ✨

sort β€” display sorted concatenation of all FILE(s). With no FILE, or when FILE is -, read standard input. no notes, that's just what she does πŸ’…


πŸŽ€ 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] [--random-source]
[-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.

like. that's it. that's the whole vibe. she takes your stuff and she puts it in order, no cap 🧚


πŸ’… OPTIONS πŸ’…

so many flags. we love a girl with range. πŸ’œ

  • --help β€” print help information.
  • --version β€” print version information.
  • --sort β€” pick your sorting vibe. the possible values are:
    • general-numeric
    • human-numeric
    • month
    • numeric
    • version
    • random
  • -h, --human-numeric-sort β€” compare according to human readable sizes, eg 1M > 100k. yes bestie, she understands that M beats k. iconic.
  • -M, --month-sort β€” compare according to month name abbreviation. january girlies rise up πŸ—“οΈ
  • -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. semver slay 🏷️
  • -R, --random-sort β€” shuffle in random order. chaos mode, lowkey fun 🎲
  • --random-source <FILE> β€” use FILE as a source of random data.
  • -d, --dictionary-order β€” consider only blanks and alphanumeric characters.
  • -m, --merge β€” merge already sorted files; do not sort. she's just combining, not judging πŸ’ž
  • -c, --check β€” check for sorted input; do not sort. the possible values are:
    • 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. case? never heard of her.
  • -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. plot twist πŸŒ€
  • -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 <italic>NUM_THREADS*. multitasking queen ⚑
  • -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_FILE> β€” read input from the files specified by NUL-terminated NUL_FILE.
  • --debug β€” underline the parts of the line that are actually used for sorting. she's showing her work, we stan a transparent icon πŸ”
  • [files] β€” your files, bestie.

πŸ¦‹ EXTRA πŸ¦‹

okay this part is the key format and it's lowkey the most important part, so pay attention babe:

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. periodt. πŸ’«

ngl the indexing trips people up every single time β€” 1 is the start, 0 means the end of the field. write that down bestie πŸ“

⭐ VERSION ⭐

v(uutils coreutils) 0.7.0

and that's the whole page, bestie!! you ate that. go sort something gorgeous πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

this has been sort (uutils coreutils) 0.7.0 β€” mwah, love u, bye πŸ«ΆπŸ’œπŸŒˆ

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms