10.0;srf (sort_file), revision 1.0, 88/01/21
srf (sort_file) -- Sort and/or merge text files.
usage: srf [-b | -s n] [-d | -i] [-f | -m | -r]... [pathname]...
DESCRIPTION
srf sorts lines of all the named files together and writes the result on
the standard output.
The sort key is an entire line. Default ordering is alphabetic by
characters as they are represented in ASCII format (digits, then
uppercase characters, then lowercase characters, then special
characters).
ARGUMENTS
pathname (optional)
Specify file(s) to be sorted. Multiple pathnames are
permitted.
Default if omitted: read standard input
OPTIONS
Sort Key Control
Use one of the following:
-b Omit leading blanks from keys.
-s n Sort based on the subfield starting in column n. If this
option is omitted, sorting starts in column one.
-f Fold all letters to a single case.
Input Character Control
Use one of the following
-d Use dictionary order: only letters, digits, and blanks are
significant in comparisons. Special characters (punctuation,
control characters, etc.) are ignored.
-i Ignore all nonprinting, nonblank characters.
Sort Mode Control
Use one of the following:
-m Merge only; the input files are already sorted.
-r Reverse the sense of the sort; list output entries in reverse order.
EXAMPLES
List contents of current working directory in order of date last
modified.
$ ld -c -dtm | srf
List most recently changed files first.
$ ld -c -dtm | srf -r
List files by size with largest files first.
$ ld -c -bl | srf -r