
sort | 429
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
snice
snice [priority] [options] processes
Reset the priority for processes. The default priority is +4. See skill
for the possible options.
sort
sort [options] [files]
Sort the lines of the named files. Compare specified fields for each
pair of lines; if no fields are specified, compare them by byte, in
machine-collating sequence. If no files are specified or if the file is -,
the input is taken from standard input. See also uniq, comm, and
join.
Options
-b, --ignore-leading-blanks
Ignore leading spaces and tabs.
-c, --check
Check whether files are already sorted and, if so, produce no
output.
-d, --dictionary-order
Sort in dictionary order.
-f, --ignore-case
Fold; ignore uppercase/lowercase differences.
-g, --general-numeric-sort
Sort in general numeric order.
--help
Print a help message and then exit.
-i, --ignore-nonprinting
Ignore nonprinting characters (those outside ASCII range
040–176).
-k n[,m], --key=n[,m]
Skip n-1 fields and stop at m-1 fields (i.e., start sorting at the
nth field, where the fields are numbered beginning with 1).
-n Sort in arithmetic order.
-ofile, --output=file
Put output in file.
-m, --merge
Merge already sorted input files.
-r, --reverse
Reverse the order of the sort.
-s, --stable
Stabilize sort by disabling last-resort comparison.
-tc, --field-separator ...