1.1; srf (sort_file), revision 1.1, 81/07/01.
SRF (SORT_FILE) -- Sort and/or merge text files.
usage: SRF [-B | -S n] [-D | -I] [-F | -M | -R]... [pathname]...
FORMAT
SRF [options] [pathname ...]
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
and wildcarding are permitted.
Default if omitted: read standard input
OPTIONS
= Sort Key Control: 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: either 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: 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
1. $ ld -c -dtm | srf List contents of current working
directory in order of date last
modified.
2. $ ld -c -dtm | srf -r List most recently changed files
first.
3. $ ld -c -bl | srf -r List files by size with largest
files first.