Bulk change: move double quotes outside tokens (#4431)

This commit is contained in:
Guido Lena Cota
2020-10-04 19:33:38 +02:00
committed by GitHub
parent cfe462c57f
commit 354d4b8748
59 changed files with 118 additions and 118 deletions

View File

@@ -4,11 +4,11 @@
- 将文字信息打印为大横幅(引号是可选的):
`banner {{"Hello World"}}`
`banner "{{Hello World}}"`
- 将文字信息打印为横幅,宽度为 50 个字:
`banner -w {{50}} {{"Hello World"}}`
`banner -w {{50}} "{{Hello World}}"`
-`stdin` 中读取文本:

View File

@@ -4,20 +4,20 @@
- 输出文本信息. 注意: 引号是可选的:
`echo {{"Hello World"}}`
`echo "{{Hello World}}"`
- 输出带有环境变量的信息:
`echo {{"My path is $PATH"}}`
`echo "{{My path is $PATH}}"`
- 打印不带尾随换行符的信息:
`echo -n {{"Hello World"}}`
`echo -n "{{Hello World}}"`
- 向文件添加信息:
`echo {{"Hello World"}} >> {{file.txt}}`
`echo "{{Hello World}}" >> {{file.txt}}`
- 启用反斜杠转义的解释(特殊字符):
`echo -e {{"Column 1\tColumn 2"}}`
`echo -e "{{Column 1\tColumn 2}}"`

View File

@@ -4,7 +4,7 @@
- 用证书签名:
`codesign -s {{"公司名称"}} {{路径 / 应用名.app}}`
`codesign -s "{{公司名称}}" {{路径 / 应用名.app}}`
- 验证应用程序的签名:

View File

@@ -8,7 +8,7 @@
- 显示特定网络设备的配置信息:
`networksetup -getinfo {{"Wi-Fi"}}`
`networksetup -getinfo "{{Wi-Fi}}"`
- 获取当前连接的 Wi-Fi 网络名称Wi-Fi 设备通常为 en0 或 en1:
@@ -16,4 +16,4 @@
- 连接到给定的 Wi-Fi 网络 Connect to a particular Wi-Fi network:
`networksetup -setairportnetwork {{en0}} {{"无线网 SSID"}} {{密码}}`
`networksetup -setairportnetwork {{en0}} "{{无线网 SSID}}" {{密码}}`

View File

@@ -4,7 +4,7 @@
- 大声说出一个句子:
`say {{"你好,世界!"}}`
`say "{{你好,世界!}}"`
- 播放文本文件内容音频:
@@ -12,7 +12,7 @@
- 用自定义的语音和语音速率说出一个句子:
`say -v {{语音库名}} -r {{每分钟多少词}} {{"你好,我可以说中文."}}`
`say -v {{语音库名}} -r {{每分钟多少词}} "{{你好,我可以说中文.}}"`
- 列出可用的语音库:
@@ -20,4 +20,4 @@
- 创建文本的音频文件:
`say -o {{文件名.aiff}} {{"你好,请将录音内容输出到文件."}}`
`say -o {{文件名.aiff}} "{{你好,请将录音内容输出到文件.}}"`

View File

@@ -12,16 +12,16 @@
- 单位与数量之间的转换:
`units {{"15 pounds"}} {{kilograms公斤}}`
`units "{{15 pounds}}" {{kilograms公斤}}`
- 显示两个复合单位之间的转换:
`units {{"meters / second"}} {{"inches英尺 / hour小时"}}`
`units "{{meters / second}}" "{{inches英尺 / hour小时}}"`
- 显示具有不同维度的单位之间的转换:
`units {{"acres英亩"}} {{"ft英尺^2平方"}}`
`units "{{acres英亩}}" "{{ft英尺^2平方}}"`
- 显示字节乘数的转换:
`units {{"15 megabytes兆字节"}} {{bytes字节}}`
`units "{{15 megabytes兆字节}}" {{bytes字节}}`

View File

@@ -16,4 +16,4 @@
- 只有与特定正则表达式匹配的内容才输入:
`{{ps ux}} | yank -g {{"[0-9]+"}}`
`{{ps ux}} | yank -g "{{[0-9]+}}"`

View File

@@ -17,4 +17,4 @@
- 在远程计算机的事件日志中创建事件:
`eventcreate /s {{主机名}} /u {{用户名}} /p {{密码}} /t {{类型}} /id {{id}} /d "{{消息"}}`
`eventcreate /s {{主机名}} /u {{用户名}} /p {{密码}} /t {{类型}} /id {{id}} /d "{{消息}}"`

View File

@@ -16,8 +16,8 @@
- 显示两个复合单位之间的转换:
`units {{"meters / second"}} {{"inches / hour"}}`
`units "{{meters / second}}" "{{inches / hour}}"`
- 显示具有不同尺寸的单位之间的转换:
`units {{"acres"}} {{"ft^2"}}`
`units "{{acres}}" "{{ft^2}}"`