textutil โ€” Command-Line Utility for Translating Text File Formats

From the man page:

textutil can be used to manipulate text files of various formats, using the mechanisms provided by the Cocoa text system.

Can’t believe I never heard of this before; it’s a shell tool that reads, writes, concatentates, and converts text, HTML, .rtf (and .rtfd), .doc, .wordml, and .webarchive files.

โ˜… Wednesday, 29 November 2006