Manipulate text files of various formats. More information: https://keith.github.io/xcode-man-pages/textutil.1.html.
foo.rtf
:textutil -info {{path/to/foo.rtf}}
foo.rtf
into foo.html
:textutil -convert {{html}} {{path/to/foo.rtf}}
textutil {{path/to/foo.rtf}} -convert {{txt}}
foo.txt
into foo.rtf
, using Times 10 for the font:textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}
index.html
with the HTML title set to "Several Files":textutil -cat {{html}} -title "Several Files" -output {{path/to/index.html}} *.rtf