From d9389de51c1db5cb4396899a6e86152f80dd70c2 Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Thu, 20 Dec 2018 13:47:04 +0100 Subject: [PATCH] textutil: add page (#2657) * textutil: add page --- pages/osx/textutil.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/osx/textutil.md diff --git a/pages/osx/textutil.md b/pages/osx/textutil.md new file mode 100644 index 0000000000..3708db593c --- /dev/null +++ b/pages/osx/textutil.md @@ -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`