home *** CD-ROM | disk | FTP | other *** search
- { Help message procedure for SORT.PAS }
-
- procedure helpmsg; begin
- writeln(' SORT -- Merge and sort multiple text files');
- writeln(' Copyright, 1988, by J. W. Rider ');
- writeln(' Syntax : SORT [options] [<unsorted-file-spec> ... ]');
- writeln(' Available options are:');
- writeln(' "/r" -- reverses the sense of the sort.');
- writeln(' "/+#" -- sorts the lines from the data in column #.');
- writeln(' (a second # defines the last column of the key field.)');
- writeln(' "/b" -- ignores leading blanks (spaces, tabs) in determining ');
- writeln(' the key.');
- writeln(' "/c" -- makes the sort case-insensitive ("a"="A").');
- writeln(' "/d" -- ignore non-alphanumerics in comparisons.');
- writeln(' "/f" -- key defined by "awk" fields vice columns.');
- writeln(' "/h" -- displays this help message rather than sort input.');
- writeln(' "/k" -- output sort keys only vice input lines.');
- writeln(' "/n" -- sorts the lines numerically vice alphabetically.');
- writeln(' "/u" -- "unique", eliminates multiple copies of identical lines.');
- writeln(' "/tC" -- makes "C" the field delimiter vice tab and space.');
- writeln(' If first filename is missing or is "-", reads from standard');
- writeln(' input. Writes to standard output.');
- end;