1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:22:10 +02:00
tldr/pages/osx/textutil.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

24 lines
784 B
Markdown

# textutil
> Manipulate text files of various formats.
> More information: <https://keith.github.io/xcode-man-pages/textutil.1.html>.
- Display information about `foo.rtf`:
`textutil -info {{path/to/foo.rtf}}`
- Convert `foo.rtf` into `foo.html`:
`textutil -convert {{html}} {{path/to/foo.rtf}}`
- Convert rich text to normal text:
`textutil {{path/to/foo.rtf}} -convert {{txt}}`
- Convert `foo.txt` into `foo.rtf`, using Times 10 for the font:
`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/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 {{path/to/index.html}} *.rtf`