UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: roffbibChapter 17
troff Preprocessors
Next: 17. troff Preprocessors
 

sortbib

sortbib [option] files

Sort one or more bibliographic databases. Typically used for printing with roffbib. Up to 16 databases may be sorted. Records may not exceed 4096 bytes in length.

Option

-s keys

Sort on the given keys. The first four keys influence the sort; the rest are ignored. Letters in keys correspond to the key letters in bibliography entries. Append a + to a letter to sort completely by that key before moving to the next.

Examples

Sort by authors first, then by date:

sortbib -sA+D myrefs | ...

Sort by author, title, and date:

sortbib -sATD myrefs | ...


Previous: Reference: roffbibUNIX in a Nutshell: System V EditionNext: 17. troff Preprocessors
Reference: roffbibBook Index17. troff Preprocessors

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System