mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
773 B
773 B
textutil
Manipulate text files of various formats. More information: https://keith.github.io/xcode-man-pages/textutil.1.html.
- Display information about
file.rtf:
textutil -info {{path/to/file.rtf}}
- Convert
file.rtfintofile.html:
textutil -convert html {{path/to/file.rtf}}
- Convert rich text to normal text:
textutil {{path/to/file.rtf}} -convert txt
- Convert
file.txtintofile.rtf, using Times 10 for the font:
textutil -convert rtf -font Times -fontsize 10 {{path/to/file.txt}}
- Load all RTF files in the current directory, concatenates their contents, and writes the result out as
index.htmlwith the HTML title set to "Several Files":
textutil -cat {{html}} -title "Several Files" -output {{path/to/index.html}} *.rtf