diff options
Diffstat (limited to 'toys/posix/sort.c')
-rw-r--r-- | toys/posix/sort.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/toys/posix/sort.c b/toys/posix/sort.c index d4a0f4fd..c33b8ff0 100644 --- a/toys/posix/sort.c +++ b/toys/posix/sort.c @@ -17,21 +17,21 @@ config SORT Sort all lines of text from input files (or stdin) to stdout. - -r reverse - -u unique lines only - -n numeric order (instead of alphabetical) - -b ignore leading blanks (or trailing blanks in second part of key) - -c check whether input is sorted - -d dictionary order (use alphanumeric and whitespace chars only) - -f force uppercase (case insensitive sort) - -i ignore nonprinting characters - -M month sort (jan, feb, etc) + -r Reverse + -u Unique lines only + -n Numeric order (instead of alphabetical) + -b Ignore leading blanks (or trailing blanks in second part of key) + -c Check whether input is sorted + -d Dictionary order (use alphanumeric and whitespace chars only) + -f Force uppercase (case insensitive sort) + -i Ignore nonprinting characters + -M Month sort (jan, feb, etc) -x Hexadecimal numerical sort - -s skip fallback sort (only sort with keys) - -z zero (null) terminated lines - -k sort by "key" (see below) - -t use a key separator other than whitespace - -o output to FILE instead of stdout + -s Skip fallback sort (only sort with keys) + -z Zero (null) terminated lines + -k Sort by "key" (see below) + -t Use a key separator other than whitespace + -o Output to FILE instead of stdout Sorting by key looks at a subset of the words on each line. -k2 uses the second word to the end of the line, -k2,2 looks at only @@ -47,7 +47,7 @@ config SORT_FLOAT help usage: sort [-g] - -g general numeric sort (double precision with nan and inf) + -g General numeric sort (double precision with nan and inf) */ #define FOR_sort |