textutil Command Examples

Manipulate text files of various formats. More information: https://keith.github.io/xcode-man-pages/textutil.1.html.

textutil -info {{path/to/foo.rtf}}

textutil -convert {{html}} {{path/to/foo.rtf}}

textutil {{path/to/foo.rtf}} -convert {{txt}}

textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}

textutil -cat {{html}} -title "Several Files" -output {{path/to/index.html}} *.rtf