summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2008-02-20 08:36:56 +0100
committerJim Meyering <meyering@redhat.com>2008-02-20 08:41:29 +0100
commitcb3147d29860195780f745faf42e2b8a02bdcbf5 (patch)
tree4fe7240b19d7d861907ae2f5713361c3aea8034a /doc
parentc78039b87de6c636a167d3206081cced54af08e2 (diff)
downloadcoreutils-cb3147d29860195780f745faf42e2b8a02bdcbf5.tar.xz
sort: add --sort=... option.
* src/sort.c (SORT_OPTION): New enum. (sort_args, sort_types): Define. (usage, long_options, main): New option --sort. * tests/sort/Test.pm: Test it. * doc/coreutils.texi (sort invocation): Document --sort option. * NEWS: Mention this.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e8ccb4bd2..040a1de9c 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -3536,8 +3536,10 @@ The @env{LC_CTYPE} locale determines character types.
@item -g
@itemx --general-numeric-sort
+@itemx --sort=general-numeric
@opindex -g
@opindex --general-numeric-sort
+@opindex --sort
@cindex general numeric sort
@vindex LC_NUMERIC
Sort numerically, using the standard C function @code{strtod} to convert
@@ -3580,8 +3582,10 @@ This option has no effect if the stronger @option{--dictionary-order}
@item -M
@itemx --month-sort
+@itemx --sort=month
@opindex -M
@opindex --month-sort
+@opindex --sort
@cindex months, sorting by
@vindex LC_TIME
An initial string, consisting of any amount of blanks, followed
@@ -3594,8 +3598,10 @@ can change this.
@item -n
@itemx --numeric-sort
+@itemx --sort=numeric
@opindex -n
@opindex --numeric-sort
+@opindex --sort
@cindex numeric sort
@vindex LC_NUMERIC
Sort numerically. The number begins each line and consists
@@ -3623,8 +3629,10 @@ appear earlier in the output instead of later.
@item -R
@itemx --random-sort
+@itemx --sort=random
@opindex -R
@opindex --random-sort
+@opindex --sort
@cindex random sort
Sort by hashing the input keys and then sorting the hash values.
Choose the hash function at random, ensuring that it is free of