home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SORT ST-UNIX User's Manual SORT
-
-
-
- COMMAND
- sort - sort files.
-
- FORMAT
- sort [ -mubdfinrt_✓x ] [ +_✓p_✓o_✓s_✓1 [ -_✓p_✓o_✓s_✓2 ] ] ... [ -o name ] [
-
- DESCRIPTION
- _✓S_✓o_✓r_✓t sorts lines of all the named files (default standard
- input), together and writes the result on the standard out-
- put. The name `-' may be used to specify the standard
- input.
-
- By default sorting is for the entire line and is in ascend-
- ing byte order. The ordering is affected by the following
- options, one or more of which may appear.
-
- b Ignore leading blanks (spaces and tabs) in field com-
- parisons.
-
- d `Dictionary' order: only letters, digits and blanks are
- significant in comparisons.
-
- f Fold upper case letters onto lower case.
-
- i Ignore characters outside the ASCII range 32-127 in
- nonnumeric comparisons.
-
- n An initial numeric string, consisting of optional
- blanks, optional minus sign, and zero or more digits
- with optional decimal point, is sorted by arithmetic
- value. Option n implies option b.
-
- r Reverse the sense of comparisons.
-
- t_✓x `Tab character' separating fields is _✓x.
-
- The notation +_✓p_✓o_✓s_✓1 -_✓p_✓o_✓s_✓2 restricts a sort key to a field
- beginning at _✓p_✓o_✓s_✓1 and ending just before _✓p_✓o_✓s_✓2. _✓P_✓o_✓s_✓1 and
- _✓p_✓o_✓s_✓2 each have the form _✓m._✓n, optionally followed by one or
- more of the flags bdfinr, where _✓m tells a number of fields
- to skip from the beginning of the line and _✓n tells a number
- of characters to skip further. A missing ._✓n means .0; a
- missing -_✓p_✓o_✓s_✓2 means the end of the line. Under the -t_✓x
- option, fields are strings separated by _✓x; otherwise fields
- are nonempty nonblank strings separated by blanks.
-
- These option arguments are also understood:
-
- c Check that the input file is sorted according to the
- ordering rules; give no output unless the file is out
- of sort.
-
-
-
-
- Printed 28/March/1988 30 March 1987 1
-
-
-
-
-
-
- SORT ST-UNIX User's Manual SORT
-
-
-
- m Merge only, the input files are already sorted.
-
- o The next argument is the name of an output file to use
- instead of the standard output. This file may be the
- same as one of the inputs.
-
- u Suppress all but one in each set of equal lines.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Printed 28/March/1988 30 March 1987 2
-
-
-
-