From 30eb42b4c1b9637feae49d9e085c2be417ad530f Mon Sep 17 00:00:00 2001 From: wizarot Date: Mon, 18 Mar 2019 12:17:10 +0800 Subject: [PATCH] txtutil: add Chinese translation --- pages.zh/osx/textutil.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages.zh/osx/textutil.md diff --git a/pages.zh/osx/textutil.md b/pages.zh/osx/textutil.md new file mode 100644 index 0000000000..5a4efab4de --- /dev/null +++ b/pages.zh/osx/textutil.md @@ -0,0 +1,23 @@ +# textutil + +> 用于操作各种格式的文本文件. + +- 显示有关 foo.rtf 的信息: + +`textutil -info {{foo.rtf}}` + +- 将 foo.rtf 转换为 foo.html: + +`textutil -convert {{html}} {{foo.rtf}}` + +- 将带格式的 rtf 文本转换为普通 txt 文本: + +`textutil {{foo.rtf}} -convert {{txt}}` + +- 将 foo.txt 转换为 foo.rtf,字体使用 Times 字号 10: + +`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}` + +- 加载当前目录中的所有RTF文件,连接其内容,并将结果作为index.html写入,HTML标题设置为"多个文件": + +`textutil -cat {{html}} -title "多个文件" -output {{index.html}} *.rtf`