diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/1/sort | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/1/sort')
| -rw-r--r-- | man/1/sort | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/man/1/sort b/man/1/sort new file mode 100644 index 00000000..a203d66e --- /dev/null +++ b/man/1/sort @@ -0,0 +1,33 @@ +.TH SORT 1 +.TH 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. |
