SORTBIB 1
NAME
sortbib − Sort refer bibliographic database following iso-690 standart
SYNOPSIS
sortbib [−i|−sKEYS] database ...
DESCRIPTION
Sortbib sorts files of records containing refer key-letters by user-specified keys. Records may be separated by blank lines, or by .[ and .] delimiters, but the two styles may not be mixed together. This program reads through each database and pulls out key fields, which are sorted separately. The sorted key fields contain the file pointer, byte offset, and length of corresponding records. These records are delivered using disk seeks and reads, so sortbib may not be used in a pipeline to read standard input.
By default, sortbib alphabetize the first %A and %D fields, which contain the senior author and date.
The -i option is used to sort database following an algorythm which aims to respect the iso-690 bibliography standart:
- If J is defined, the order of fields is: QA+TE+SVBJ.
- Else, if B is defined, the order of fields is: QA+TE+SVB.
- Else, the order of fields is: QA+E+SVT.
The −s option is used to specify new KEYS. For instance, −sATD will sort by author, title, and date, while −sA+D will sort by all authors, and date. Sort keys past the fourth are not meaningful. No more than 16 databases may be sorted together at one time. Records longer than 4096 characters will be truncated.
Sortbib sorts on last word on the %A and %E line, which are assumed to be the author’s and editor’s last name. A word in the final position, such as "jr." or "ed.", will be ignored if the name beforehand ends with a comma. Authors with two-word last names or unusual constructions can be sorted correctly by using the nroff convention "\0" in place of a blank. A %Q field is considered to be the same as %A, except sorting begins with the first, not the last, word. Sortbib sorts on the last word of the %D line, usually the year. If a sort- significant field is absent from a record, sortbib places that record before other records containing that field.
LICENSE
Sortbib is distributed under the This manual page is distributed under a bsd4 license.
FILES
@BINDIR@/sortbib
SEE ALSO
AUTHORS
Written by Greg Shenaut & Bill Tuthill. Modified by Pierre-Jean Fichet.