textutil

用于操作各种格式的文本文件。 更多信息:https://keith.github.io/xcode-man-pages/textutil.1.html.

textutil -info {{foo.rtf}}

textutil -convert {{html}} {{foo.rtf}}

textutil {{foo.rtf}} -convert {{txt}}

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

textutil -cat {{html}} -title "多个文件" -output {{index.html}} *.rtf