SORT(1)
SORT(1) ๐
okay so this is the General Commands Manual page for SORT(1), and Iโm gonna make it make sense, bestie. ๐ซถ
โจ NAME โจ
sort โ displays the sorted concatenation of all FILE(s). With no FILE, or when FILE is -, it reads standard input. slay. ๐
๐ฆ SYNOPSIS ๐ฆ
sort [OPTION]... [FILE]...
๐ธ DESCRIPTION ๐ธ
Same energy as NAME, but with room to breathe: sort displays the sorted concatenation of all FILE(s). With no FILE, or when FILE is -, it reads standard input. no cap. โจ
๐ OPTIONS ๐
--helpโ print help information. iconic. ๐--versionโ print version information. ๐ธ--sortโ okay so this one picks the sort vibe. Possible values:general-numerichuman-numericmonthnumericversionrandom
-h,--human-numeric-sortโ compares according to human-readable sizes, like1M > 100k, bestie. ๐-M,--month-sortโ compares according to month name abbreviation. ๐๏ธ-n,--numeric-sortโ compares according to string numerical value. ๐ข-g,--general-numeric-sortโ compares according to string general numerical value. ๐งฎ-V,--version-sortโ sorts by SemVer version number, like1.12.2 > 1.1.2. ๐ฆ-R,--random-sortโ shuffles in random order. chaotic, love that. ๐--random-source <FILE>โ usesFILEas a source of random data. ๐ฒ-d,--dictionary-orderโ considers only blanks and alphanumeric characters. ๐-m,--mergeโ merges already sorted files; does not sort. ๐-c,--checkโ checks for sorted input; does not sort. Possible values:silentquietdiagnose-first
-C,--check-silentโ exits successfully if the given file is already sorted, and exits with status1otherwise. vibe check, but make it exit-code. โจ-f,--ignore-caseโ folds lower case to upper case characters. ๐-i,--ignore-nonprintingโ ignores nonprinting characters. ๐-b,--ignore-leading-blanksโ ignores leading blanks when finding sort keys in each line. ๐ธ-o,--output <FILENAME>โ writes output toFILENAMEinstead of stdout. ๐ซถ-r,--reverseโ reverses the output. ๐-s,--stableโ stabilizes sort by disabling last-resort comparison. bestie behavior. ๐-u,--uniqueโ outputs only the first of an equal run. one of each, periodt. ๐-k,--keyโ sorts by a key. ๐-t,--field-separatorโ custom separator for-k. โ๏ธ-z,--zero-terminatedโ line delimiter isNUL, not newline. ๐--parallel <NUM_THREADS>โ changes the number of threads running concurrently toNUM_THREADS. โก-S,--buffer-size <SIZE>โ sets the maximumSIZEof each segment in number of sorted items. ๐-T,--temporary-directory <DIR>โ usesDIRfor temporaries, not$TMPDIRor/tmp. ๐--compress-program <PROG>โ compresses temporary files withPROG, decompresses withPROG -d;PROGhas to take input from stdin and output to stdout. ๐ง--batch-size <N_MERGE>โ merges at mostN_MERGEinputs at once. ๐--files0-from <NUL_FILE>โ reads input from the files specified by NUL-terminatedNUL_FILE. ๐ฆ--debugโ underlines the parts of the line that are actually used for sorting. main character energy. โญ[files]โ theFILEarguments go here, bestie. ๐
๐ EXTRA ๐
okay so the key format is literally:
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. no cap. โจ
๐ VERSION ๐
This build is v(uutils coreutils) 0.12.0, bestie. ๐
xoxo, your SORT(1) bestie โ v(uutils coreutils) 0.12.0, dated 2026-09-17, bye ๐ซถ๐
๐ฆ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms