mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:15:31 +02:00
parent
45ec3033c0
commit
d9389de51c
1 changed files with 23 additions and 0 deletions
23
pages/osx/textutil.md
Normal file
23
pages/osx/textutil.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# textutil
|
||||
|
||||
> Used to manipulate text files of various formats.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue