sort(1)
π 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-numerichuman-numericmonthnumericversionrandom
-h,--human-numeric-sortβ compare according to human readable sizes, eg1M > 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, eg1.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:silentquietdiagnose-first
-C,--check-silentβ exit successfully if the given file is already sorted, and exit with status1otherwise.-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 isNUL, 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$TMPDIRor/tmp.--compress-program <PROG>β compress temporary files with PROG, decompress withPROG -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 β1is the start,0means 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