From cb3147d29860195780f745faf42e2b8a02bdcbf5 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 20 Feb 2008 08:36:56 +0100 Subject: 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. --- doc/coreutils.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3-54-g00ecf