07.05.05
Convert document formats on the command line
macosxhints - 10.4 Convert document formats on the command line:
“There’s a new command line (unix) utility in OS X 10.4 called textutil which will convert document formats known to the Cocoa layer. According to the man page (man textutil), the formats supported are: txt, html, rtf, rtfd, doc, wordml, or webarchive. Most usefully, you can convert rtf, doc and html documents to text format for further processing with other command line tools.”
It seems to not work terribly well on webarchive files. Just running -info on one took a while to run. 1m1.054s on my iBook, to be exact.