BibTool is a command-line utility for rewriting and transforming bibilography databases for BibTeX. It can sort records. It can generate normalized citelabels. It can rewrite field contents based on user-specified regex recipes. It can extract records based on regex matching, or all the records a given document cites. . Website: http://www.gerd-neugebauer.de/software/TeX/BibTool/