MAN page from Old RedHat 7.X textutils-2.0e-8.i386.rpm
SORT
Section: FSF (1)
Updated: March 2000
Index NAME
sort - sort lines of text files
SYNOPSIS
sort[
OPTION]... [
FILE]...
DESCRIPTION
Write sorted concatenation of all FILE(s) to standard output.
- +POS1 [-POS2]
- start a key at POS1, end it *before* POS2 (obsolescent)field numbers and character offsets are numberedstarting with zero (contrast with the -k option)
- -b
- ignore leading blanks in sort fields or keys
- -c
- check if given files already sorted, do not sort
- -d
- consider only [a-zA-Z0-9 ] characters in keys
- -f
- fold lower case to upper case characters in keys
- -g
- compare according to general numerical value, imply -b
- -i
- consider only [\040-\0176] characters in keys
- -k POS1[,POS2]
- start a key at POS1, end it *at* POS2field numbers and character offsets are numberedstarting with one (contrast with zero-based +POS form)
- -m
- merge already sorted files, do not sort
- -M
- compare (unknown) < `JAN' < ... < `DEC', imply -b
- -n
- compare according to string numerical value, imply -b
- -o FILE
- write result on FILE instead of standard output
- -r
- reverse the result of comparisons
- -s
- stabilize sort by disabling last resort comparison
- -t SEP
- use SEParator instead of non- to whitespace transition
- -T DIRECTORY
- use DIRECTORY for temporary files, not $TMPDIR or /tmp
- -u
- with -c, check for strict ordering;with -m, only output the first of an equal sequence
- -z
- end lines with 0 byte, not newline, for find -print0
- --help
- display this help and exit
- --version
- output version information and exit
POS is F[.C][OPTS], where F is the field number and C the character positionin the field, both counted from one with -k, from zero with the obsolescentform. OPTS is made up of one or more of Mbdfinr; this effectively disablesglobal -Mbdfinr settings for that key. If no key is given, use the entireline as the key. With no FILE, or when FILE is -, read standard input.
AUTHOR
Written by Mike Haertel.
REPORTING BUGS
Report bugs to <bug-textutilsAATTgnu.org>.
COPYRIGHT
Copyright © 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
The full documentation for
sortis maintained as a Texinfo manual. If the
infoand
sortprograms are properly installed at your site, the command
- info sort
should give you access to the complete manual.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- AUTHOR
- REPORTING BUGS
- COPYRIGHT
- SEE ALSO
This document was created byman2html,using the manual pages.