TLDR
Enter a command. For example: whence, spctl, aa, osascript, bc.

textutil

 
Used to manipulate text files of various formats. More information: https://ss64.com/osx/textutil.html.
 
  • Display information about foo.rtf:
     
    textutil -info {{foo.rtf}}
     
  • Convert foo.rtf into foo.html:
     
    textutil -convert {{html}} {{foo.rtf}}
     
  • Convert rich text to normal text:
     
    textutil {{foo.rtf}} -convert {{txt}}
     
  • Convert foo.txt into foo.rtf, using Times 10 for the font:
     
    textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}
     
  • Load all RTF files in the current directory, concatenates their contents, and writes the result out as index.html with the HTML title set to "Several Files":
     
    textutil -cat {{html}} -title "Several Files" -output {{index.html}} *.rtf

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.