uxsort
Package: WA2L/WinTools 1.2.08
Section: User Commands (1)
Updated: February 2016
Index
Return to Main Contents
NAME
uxsort - sort lines of text files
SYNOPSIS
uxsort
[,OPTION/]... [,FILE/]...
DESCRIPTION
Write sorted concatenation of all FILE(s) to standard output.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
Ordering options:
- -b
-
ignore leading blanks
- -d
-
consider only blanks and alphanumeric characters
- -f
-
fold lower case to upper case characters
- -g
-
compare according to general numerical value
- -i
-
consider only printable characters
- -M
-
compare (unknown) < 'JAN' < ... < 'DEC'
- -n
-
compare according to string numerical value
- -r
-
reverse the result of comparisons
Other options:
- -c
-
check for sorted input; do not sort
- -k
-
sort via a key; KEYDEF gives location and type
- -m
-
merge already sorted files; do not sort
- -o
-
write result to FILE instead of standard output
- -s
-
stabilize sort by disabling last-resort comparison
- -t
-
use SEP instead of non-blank to blank transition
- -T
-
use DIR for temporaries, not $TMPDIR or ,/tmp/;
multiple options specify multiple directories
- -u
-
with -c, check for strict ordering;
without -c, output only the first of an equal run
- -z
-
line delimiter is NUL, not newline
- --help
-
display this help and exit
- --version
-
output version information and exit
KEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is a
field number and C a character position in the field; both are origin 1, and
the stop position defaults to the line's end. If neither -t nor -b is in
effect, characters in a field are counted from the beginning of the preceding
whitespace. OPTS is one or more single-letter ordering options [bdfgiMhnRrV],
which override global ordering options for that key. If no key is given, use
the entire line as the key.
SIZE may be followed by the following multiplicative suffixes:
% 1% of memory, b 1, K 1024 (default), and so on for M, G, T, P, E, Z, Y.
*** WARNING ***
The locale specified by the environment affects sort order.
Set LC_ALL=C to get the traditional sort order that uses
native byte values.
AUTHOR
Written by Mike Haertel and Paul Eggert.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report sort translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright © 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
uniq(1)
Full documentation at: <http://www.gnu.org/software/coreutils/sort>
or available locally via: info aq(coreutils) sort invocationaq
This document was created by man2html
using the manual pages.
Time: 16:33:50 GMT, September 14, 2024