CmdID

CmdID / Commands

textutil

Manipulate text files of various formats. tldr-pages

On macOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Display information about file.rtf

textutil -info path/to/file.rtfIdentify

Convert file.rtf into file.html

textutil -convert html path/to/file.rtfIdentify

Convert rich text to normal text

textutil path/to/file.rtf -convert txtIdentify

Convert file.txt into file.rtf, using Times 10 for the font

textutil -convert rtf -font Times -fontsize 10 path/to/file.txtIdentify

Load all RTF files in the current directory, concatenate their contents, and write the result out as index.html with the HTML title set to "Several Files"

textutil -cat html -title "Several Files" -output path/to/index.html *.rtfIdentify