diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/inferno/man1/sort.1 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/inferno/man1/sort.1')
| -rw-r--r-- | static/inferno/man1/sort.1 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/static/inferno/man1/sort.1 b/static/inferno/man1/sort.1 new file mode 100644 index 00000000..afb6f6ad --- /dev/null +++ b/static/inferno/man1/sort.1 @@ -0,0 +1,33 @@ +.TH SORT 1 +.SH NAME +sort \- sort file +.SH SYNOPSIS +.B sort +[ +.B -nr +] [ +.I file +] +.SH DESCRIPTION +.I Sort +sorts the lines of +.I file +(default: standard input) +and writes the sorted output to +standard output. +.PP +Whole lines are sorted into increasing order, using lexicographic ordering of Unicode characters +by default. +The sort is stable, so that lines that compare equal will appear in the output +in the same order as in the original file. +The sort order is affected by the following options: +.TP +.B -n +Each line is assumed to have an initial numeric string representing an integer, +with optional plus or minus sign, and the lines +are sorted by those numeric values into increasing order. +.TP +.B -r +Reverses the sense of comparisons. +.SH BUGS +The entire file is read into memory to be sorted. |
