From 354d4b8748ee58813dd6830ced7c3b11067255d7 Mon Sep 17 00:00:00 2001 From: Guido Lena Cota Date: Sun, 4 Oct 2020 19:33:38 +0200 Subject: [PATCH] Bulk change: move double quotes outside tokens (#4431) --- pages.de/common/tar.md | 2 +- pages.es/common/tar.md | 2 +- pages.fr/common/tar.md | 2 +- pages.it/common/banner.md | 4 ++-- pages.it/common/csvgrep.md | 2 +- pages.it/common/echo.md | 10 +++++----- pages.ko/common/banner.md | 4 ++-- pages.ko/common/csvgrep.md | 2 +- pages.pt_BR/common/tar.md | 2 +- pages.pt_BR/linux/eyeD3.md | 4 ++-- pages.zh/common/banner.md | 4 ++-- pages.zh/common/echo.md | 10 +++++----- pages.zh/osx/codesign.md | 2 +- pages.zh/osx/networksetup.md | 4 ++-- pages.zh/osx/say.md | 6 +++--- pages.zh/osx/units.md | 8 ++++---- pages.zh/osx/yank.md | 2 +- pages.zh/windows/eventcreate.md | 2 +- pages.zh/windows/units.md | 4 ++-- pages.zh_TW/common/echo.md | 10 +++++----- pages/common/banner.md | 4 ++-- pages/common/csvgrep.md | 2 +- pages/common/echo.md | 10 +++++----- pages/common/gist.md | 2 +- pages/common/gitk.md | 4 ++-- pages/common/jrnl.md | 2 +- pages/common/mail.md | 6 +++--- pages/common/mitmdump.md | 2 +- pages/common/mkcert.md | 2 +- pages/common/mmv.md | 6 +++--- pages/common/mosquitto_pub.md | 4 ++-- pages/common/msmtp.md | 6 +++--- pages/common/numfmt.md | 2 +- pages/common/printf.md | 8 ++++---- pages/common/read.md | 2 +- pages/common/scheme.md | 2 +- pages/common/shc.md | 2 +- pages/common/sqlmap.md | 10 +++++----- pages/common/tar.md | 2 +- pages/common/transmission-remote.md | 4 ++-- pages/common/youtube-dl.md | 4 ++-- pages/linux/bitwise.md | 2 +- pages/linux/dunstify.md | 6 +++--- pages/linux/e2label.md | 2 +- pages/linux/eyeD3.md | 4 ++-- pages/linux/mkisofs.md | 2 +- pages/linux/notify-send.md | 8 ++++---- pages/linux/snapper.md | 2 +- pages/linux/timedatectl.md | 2 +- pages/linux/ufw.md | 2 +- pages/linux/units.md | 4 ++-- pages/linux/yank.md | 2 +- pages/osx/codesign.md | 2 +- pages/osx/networksetup.md | 4 ++-- pages/osx/say.md | 6 +++--- pages/osx/units.md | 8 ++++---- pages/osx/yank.md | 2 +- pages/windows/eventcreate.md | 2 +- pages/windows/units.md | 4 ++-- 59 files changed, 118 insertions(+), 118 deletions(-) diff --git a/pages.de/common/tar.md b/pages.de/common/tar.md index 800437532..7a0c64498 100644 --- a/pages.de/common/tar.md +++ b/pages.de/common/tar.md @@ -34,7 +34,7 @@ - Extrahiere Dateien die mit einem Muster übereinstimmen: -`tar xf {{quelle.tar}} --wildcards {{"*.html"}}` +`tar xf {{quelle.tar}} --wildcards "{{*.html}}"` - Extrahiere eine bestimmte Datei ohne die Verzeichniss Struktur beizubehalten: diff --git a/pages.es/common/tar.md b/pages.es/common/tar.md index c79f3bcb7..715a1f856 100644 --- a/pages.es/common/tar.md +++ b/pages.es/common/tar.md @@ -30,4 +30,4 @@ - Extraer archivos que coinciden con un patrón: -`tar xf {{archivo.tar}} --wildcards {{"*.html"}}` +`tar xf {{archivo.tar}} --wildcards "{{*.html}}"` diff --git a/pages.fr/common/tar.md b/pages.fr/common/tar.md index 497da5d11..4449633cd 100644 --- a/pages.fr/common/tar.md +++ b/pages.fr/common/tar.md @@ -30,4 +30,4 @@ - Extraire les fichiers correspondant au motif : -`tar xf {{source.tar}} --wildcards {{"*.html"}}` +`tar xf {{source.tar}} --wildcards "{{*.html}}"` diff --git a/pages.it/common/banner.md b/pages.it/common/banner.md index 5bd5bf771..c32a14a88 100644 --- a/pages.it/common/banner.md +++ b/pages.it/common/banner.md @@ -4,11 +4,11 @@ - Stampa il testo come un grande banner (le virgolette sono opzionali): -`banner {{"Hello World"}}` +`banner "{{Hello World}}"` - Stampa il testo come un banner con una larghezza di 50 caratteri: -`banner -w {{50}} {{"Hello World"}}` +`banner -w {{50}} "{{Hello World}}"` - Leggi testo da `stdin`: diff --git a/pages.it/common/csvgrep.md b/pages.it/common/csvgrep.md index c3093ceaa..9652d7ca9 100644 --- a/pages.it/common/csvgrep.md +++ b/pages.it/common/csvgrep.md @@ -14,4 +14,4 @@ - Trova righe dove la colonna "nome" NON include la stringa "Mario Rossi": -`csvgrep -i -c {{nome}} -m {{"Mario Rossi"}} {{data.csv}}` +`csvgrep -i -c {{nome}} -m "{{Mario Rossi}}" {{data.csv}}` diff --git a/pages.it/common/echo.md b/pages.it/common/echo.md index 206166329..b3c4a8b2a 100644 --- a/pages.it/common/echo.md +++ b/pages.it/common/echo.md @@ -4,20 +4,20 @@ - Stampa un messaggio di testo. Nota: le virgolette sono opzionali: -`echo {{"Hello World"}}` +`echo "{{Hello World}}"` - Stampa un messaggio con il contenuto di variabili di ambiente: -`echo {{"La mia path è $PATH"}}` +`echo "{{La mia path è $PATH}}"` - Stampa un messaggio senza il carattere di nuova linea finale: -`echo -n {{"Hello World"}}` +`echo -n "{{Hello World}}"` - Aggiungi un messaggio in coda ad un file: -`echo {{"Hello World"}} >> {{file.txt}}` +`echo "{{Hello World}}" >> {{file.txt}}` - Abilita l'interpretazione delle sequenze di escape con il backslash (caratteri speciali): -`echo -e {{"Colonna 1\tColonna 2"}}` +`echo -e "{{Colonna 1\tColonna 2}}"` diff --git a/pages.ko/common/banner.md b/pages.ko/common/banner.md index 4d57283b8..14718a402 100644 --- a/pages.ko/common/banner.md +++ b/pages.ko/common/banner.md @@ -4,11 +4,11 @@ - 텍스트 메시지를 큰 배너로 출력(따옴표는 선택 사항): -`banner {{"Hello World"}}` +`banner "{{Hello World}}"` - 텍스트 메시지를 너비가 50자인 배너로 출력: -`banner -w {{50}} {{"Hello World"}}` +`banner -w {{50}} "{{Hello World}}"` - `stdin`에서 텍스트 읽기: diff --git a/pages.ko/common/csvgrep.md b/pages.ko/common/csvgrep.md index caff3d697..367593051 100644 --- a/pages.ko/common/csvgrep.md +++ b/pages.ko/common/csvgrep.md @@ -13,4 +13,4 @@ - "이름" 열에서 "John Doe"가 포함되지 않는 행 찾기: -`csvgrep -i -c {{이름}} -m {{"John Doe"}} {{데이터.csv}}` +`csvgrep -i -c {{이름}} -m "{{John Doe}}" {{데이터.csv}}` diff --git a/pages.pt_BR/common/tar.md b/pages.pt_BR/common/tar.md index 72087a692..f09139767 100644 --- a/pages.pt_BR/common/tar.md +++ b/pages.pt_BR/common/tar.md @@ -30,7 +30,7 @@ - Extrair arquivos seguindo um padrão: -`tar -xvf {{input.tar}} --wildcards {{"*.html"}}` +`tar -xvf {{input.tar}} --wildcards "{{*.html}}"` - Listando arquivos de um arquivo tar: diff --git a/pages.pt_BR/linux/eyeD3.md b/pages.pt_BR/linux/eyeD3.md index 19eedc058..abf43ea60 100644 --- a/pages.pt_BR/linux/eyeD3.md +++ b/pages.pt_BR/linux/eyeD3.md @@ -9,11 +9,11 @@ - Definir o título de um arquivo MP3: -`eyeD3 --title {{"titulo"}} {{arquivo.mp3}}` +`eyeD3 --title "{{titulo}}" {{arquivo.mp3}}` - Definir o álbum de todos os arquivos MP3 de um diretório: -`eyeD3 --album {{"nome_do_album"}} {{*.mp3}}` +`eyeD3 --album "{{nome_do_album}}" {{*.mp3}}` - Definir a capa do álbum para um arquivo MP3: diff --git a/pages.zh/common/banner.md b/pages.zh/common/banner.md index f333a46c6..6fa6e8ad7 100644 --- a/pages.zh/common/banner.md +++ b/pages.zh/common/banner.md @@ -4,11 +4,11 @@ - 将文字信息打印为大横幅(引号是可选的): -`banner {{"Hello World"}}` +`banner "{{Hello World}}"` - 将文字信息打印为横幅,宽度为 50 个字: -`banner -w {{50}} {{"Hello World"}}` +`banner -w {{50}} "{{Hello World}}"` - 从 `stdin` 中读取文本: diff --git a/pages.zh/common/echo.md b/pages.zh/common/echo.md index 147024720..211986306 100644 --- a/pages.zh/common/echo.md +++ b/pages.zh/common/echo.md @@ -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}}"` diff --git a/pages.zh/osx/codesign.md b/pages.zh/osx/codesign.md index ac4fe6294..c28404b5d 100644 --- a/pages.zh/osx/codesign.md +++ b/pages.zh/osx/codesign.md @@ -4,7 +4,7 @@ - 用证书签名: -`codesign -s {{"公司名称"}} {{路径 / 应用名.app}}` +`codesign -s "{{公司名称}}" {{路径 / 应用名.app}}` - 验证应用程序的签名: diff --git a/pages.zh/osx/networksetup.md b/pages.zh/osx/networksetup.md index 173e0ccc2..0ac3a6a65 100644 --- a/pages.zh/osx/networksetup.md +++ b/pages.zh/osx/networksetup.md @@ -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}}" {{密码}}` diff --git a/pages.zh/osx/say.md b/pages.zh/osx/say.md index 749ab8033..627ec437e 100644 --- a/pages.zh/osx/say.md +++ b/pages.zh/osx/say.md @@ -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}} "{{你好,请将录音内容输出到文件.}}"` diff --git a/pages.zh/osx/units.md b/pages.zh/osx/units.md index d3585b972..1ffceda00 100644 --- a/pages.zh/osx/units.md +++ b/pages.zh/osx/units.md @@ -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(字节)}}` diff --git a/pages.zh/osx/yank.md b/pages.zh/osx/yank.md index 769d073b8..5cb7fc325 100644 --- a/pages.zh/osx/yank.md +++ b/pages.zh/osx/yank.md @@ -16,4 +16,4 @@ - 只有与特定正则表达式匹配的内容才输入: -`{{ps ux}} | yank -g {{"[0-9]+"}}` +`{{ps ux}} | yank -g "{{[0-9]+}}"` diff --git a/pages.zh/windows/eventcreate.md b/pages.zh/windows/eventcreate.md index b07de785b..7e4b2a1e7 100644 --- a/pages.zh/windows/eventcreate.md +++ b/pages.zh/windows/eventcreate.md @@ -17,4 +17,4 @@ - 在远程计算机的事件日志中创建事件: -`eventcreate /s {{主机名}} /u {{用户名}} /p {{密码}} /t {{类型}} /id {{id}} /d "{{消息"}}` +`eventcreate /s {{主机名}} /u {{用户名}} /p {{密码}} /t {{类型}} /id {{id}} /d "{{消息}}"` diff --git a/pages.zh/windows/units.md b/pages.zh/windows/units.md index 7f06d0ab4..4f89ca583 100644 --- a/pages.zh/windows/units.md +++ b/pages.zh/windows/units.md @@ -16,8 +16,8 @@ - 显示两个复合单位之间的转换: -`units {{"meters / second"}} {{"inches / hour"}}` +`units "{{meters / second}}" "{{inches / hour}}"` - 显示具有不同尺寸的单位之间的转换: -`units {{"acres"}} {{"ft^2"}}` +`units "{{acres}}" "{{ft^2}}"` diff --git a/pages.zh_TW/common/echo.md b/pages.zh_TW/common/echo.md index 6e3905e57..98813152b 100644 --- a/pages.zh_TW/common/echo.md +++ b/pages.zh_TW/common/echo.md @@ -4,20 +4,20 @@ - 印出一行文字(如果文字中沒有連續的空格,可以不加引號): -`echo {{"文字"}}` +`echo "{{文字}}"` - 印出包含環境變數的文字: -`echo {{"我的家目錄位於 $HOME"}}` +`echo "{{我的家目錄位於 $HOME}}"` - 印出文字,但結尾不換行: -`echo -n {{"文字"}}` +`echo -n "{{文字}}"` - 將一段文字加到檔案的結尾: -`echo {{"文字"}} >> {{檔案}}` +`echo "{{文字}}" >> {{檔案}}` - 將以「\\」開頭的跳脫序列轉換為特殊字元(例如「\t」會被顯示為水平定位字元): -`echo -e {{"第一欄\t第二欄"}}` +`echo -e "{{第一欄\t第二欄}}"` diff --git a/pages/common/banner.md b/pages/common/banner.md index 87877d2af..1647398f4 100644 --- a/pages/common/banner.md +++ b/pages/common/banner.md @@ -4,11 +4,11 @@ - Print the text message as a large banner (quotes are optional): -`banner {{"Hello World"}}` +`banner "{{Hello World}}"` - Print the text message as a banner with a width of 50 characters: -`banner -w {{50}} {{"Hello World"}}` +`banner -w {{50}} "{{Hello World}}"` - Read text from `stdin`: diff --git a/pages/common/csvgrep.md b/pages/common/csvgrep.md index 8a5a3ba32..a898b4971 100644 --- a/pages/common/csvgrep.md +++ b/pages/common/csvgrep.md @@ -14,4 +14,4 @@ - Find rows in which the "name" column does NOT include the string "John Doe": -`csvgrep -i -c {{name}} -m {{"John Doe"}} {{data.csv}}` +`csvgrep -i -c {{name}} -m "{{John Doe}}" {{data.csv}}` diff --git a/pages/common/echo.md b/pages/common/echo.md index c91bfa46b..a758600a7 100644 --- a/pages/common/echo.md +++ b/pages/common/echo.md @@ -4,20 +4,20 @@ - Print a text message. Note: quotes are optional: -`echo {{"Hello World"}}` +`echo "{{Hello World}}"` - Print a message with environment variables: -`echo {{"My path is $PATH"}}` +`echo "{{My path is $PATH}}"` - Print a message without the trailing newline: -`echo -n {{"Hello World"}}` +`echo -n "{{Hello World}}"` - Append a message to the file: -`echo {{"Hello World"}} >> {{file.txt}}` +`echo "{{Hello World}}" >> {{file.txt}}` - Enable interpretation of backslash escapes (special characters): -`echo -e {{"Column 1\tColumn 2"}}` +`echo -e "{{Column 1\tColumn 2}}"` diff --git a/pages/common/gist.md b/pages/common/gist.md index cc56be1c3..fb073fed6 100644 --- a/pages/common/gist.md +++ b/pages/common/gist.md @@ -13,7 +13,7 @@ - Create a private gist with a description: -`gist -p -d {{"A meaningful description"}} {{file.txt}} ` +`gist -p -d "{{A meaningful description}}" {{file.txt}} ` - Read contents from `stdin` and create a gist from it: diff --git a/pages/common/gitk.md b/pages/common/gitk.md index af02c4c6c..b046510d3 100644 --- a/pages/common/gitk.md +++ b/pages/common/gitk.md @@ -13,11 +13,11 @@ - Show commits made since 1 week ago: -`gitk --since={{"1 week ago"}}` +`gitk --since="{{1 week ago}}"` - Show commits older than 1/1/2016: -`gitk --until={{"1/1/2015"}}` +`gitk --until="{{1/1/2015}}"` - Show at most 100 changes in all branches: diff --git a/pages/common/jrnl.md b/pages/common/jrnl.md index a7443a696..07bb4d5c0 100644 --- a/pages/common/jrnl.md +++ b/pages/common/jrnl.md @@ -17,7 +17,7 @@ - View everything that happened from the start of last year to the start of last march: -`jrnl -from {{"last year"}} -until {{march}}` +`jrnl -from "{{last year}}" -until {{march}}` - Edit all entries tagged with "texas" and "history": diff --git a/pages/common/mail.md b/pages/common/mail.md index 50a756ed9..fcd97a3ea 100644 --- a/pages/common/mail.md +++ b/pages/common/mail.md @@ -5,12 +5,12 @@ - Send a typed email message. The commandline below continues after pressing Enter key. Input CC email-id (optional) press Enter key. Input message text (can be multi-line). Press "Ctrl-D" key to complete the message text: -`mail --subject={{"subject line"}} {{to_user@example.com}}` +`mail --subject="{{subject line}}" {{to_user@example.com}}` - Send an email that contains file content: -`mail --subject={{"$HOSTNAME filename.txt"}} {{to_user@example.com}} < {{path/to/filename.txt}}` +`mail --subject="{{$HOSTNAME filename.txt}}" {{to_user@example.com}} < {{path/to/filename.txt}}` - Send a tar.gz file as an attachment: -`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject={{"subject line"}} {{to_user@example.com}}` +`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject="{{subject line}}" {{to_user@example.com}}` diff --git a/pages/common/mitmdump.md b/pages/common/mitmdump.md index b1f015a4a..c25403038 100644 --- a/pages/common/mitmdump.md +++ b/pages/common/mitmdump.md @@ -10,7 +10,7 @@ - Filter a saved traffic file to just POST requests: -`mitmdump -nr {{input_filename}} -w {{output_filename}} {{"~m post"}}` +`mitmdump -nr {{input_filename}} -w {{output_filename}} "{{~m post}}"` - Replay a saved traffic file: diff --git a/pages/common/mkcert.md b/pages/common/mkcert.md index 0d832ad8d..a5a5bc856 100644 --- a/pages/common/mkcert.md +++ b/pages/common/mkcert.md @@ -17,7 +17,7 @@ - Generate wildcard certificate and private key for a given domain and its subdomains: -`mkcert {{"*.example.it"}}` +`mkcert "{{*.example.it}}"` - Uninstall the local CA: diff --git a/pages/common/mmv.md b/pages/common/mmv.md index 5c6ba37d1..aef1c25bc 100644 --- a/pages/common/mmv.md +++ b/pages/common/mmv.md @@ -8,12 +8,12 @@ - Copy report6part4.txt to ./french/rapport6partie4.txt along with all similarly named files: -`mmv -c {{"report*part*.txt"}} {{"./french/rapport#1partie#2.txt"}}` +`mmv -c "{{report*part*.txt}}" "{{./french/rapport#1partie#2.txt}}"` - Append all .txt files into one file: -`mmv -a {{"*.txt"}} {{"all.txt"}}` +`mmv -a "{{*.txt}}" "{{all.txt}}"` - Convert dates in filenames from "M-D-Y" format to "D-M-Y" format: -`mmv {{"[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9].txt"}} {{"#3#4-#1#2-#5#6#7#8.txt"}}` +`mmv "{{[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9].txt}}" "{{#3#4-#1#2-#5#6#7#8.txt}}"` diff --git a/pages/common/mosquitto_pub.md b/pages/common/mosquitto_pub.md index 741521edb..cde30e4c3 100644 --- a/pages/common/mosquitto_pub.md +++ b/pages/common/mosquitto_pub.md @@ -9,11 +9,11 @@ - Publish timestamp and temperature data on the topic `sensors/temperature` to a remote host on a non-standard port: -`mosquitto_pub -h {{192.168.1.1}} -p {{1885}} -t {{sensors/temperature}} -m {{"1266193804 32"}}` +`mosquitto_pub -h {{192.168.1.1}} -p {{1885}} -t {{sensors/temperature}} -m "{{1266193804 32}}"` - Publish light switch status and retain the message on the topic `switches/kitchen_lights/status` to a remote host because there may be a long period of time between light switch events: -`mosquitto_pub -r -h {{"iot.eclipse.org"}} -t {{switches/kitchen_lights/status}} -m {{"on"}}` +`mosquitto_pub -r -h "{{iot.eclipse.org}}" -t {{switches/kitchen_lights/status}} -m "{{on}}"` - Send the contents of a file (`data.txt`) as a message and publish it to `sensors/temperature` topic: diff --git a/pages/common/msmtp.md b/pages/common/msmtp.md index 0231c42db..b9eda22f7 100644 --- a/pages/common/msmtp.md +++ b/pages/common/msmtp.md @@ -6,12 +6,12 @@ - Send an email using the default account configured in `~/.msmtprc`: -`echo {{"Hello world"}} | msmtp {{to@example.org}}` +`echo "{{Hello world}}" | msmtp {{to@example.org}}` - Send an email using a specific account configured in `~/.msmtprc`: -`echo {{"Hello world"}} | msmtp --account={{account_name}} {{to@example.org}}` +`echo "{{Hello world}}" | msmtp --account={{account_name}} {{to@example.org}}` - Send an email without a configured account. The password should be specified in the `~/.msmtprc` file: -`echo {{"Hello world"}} | msmtp --host={{localhost}} --port={{999}} --from={{from@example.org}} {{to@example.org}}` +`echo "{{Hello world}}" | msmtp --host={{localhost}} --port={{999}} --from={{from@example.org}} {{to@example.org}}` diff --git a/pages/common/numfmt.md b/pages/common/numfmt.md index dab5002d3..330c43c1b 100644 --- a/pages/common/numfmt.md +++ b/pages/common/numfmt.md @@ -13,4 +13,4 @@ - Convert to IEC units, pad with 5 characters, left aligned: -`du -s * | numfmt --to={{iec}} --format={{"%-5f"}}` +`du -s * | numfmt --to={{iec}} --format="{{%-5f}}"` diff --git a/pages/common/printf.md b/pages/common/printf.md index 5dd6062e0..f18439e2f 100644 --- a/pages/common/printf.md +++ b/pages/common/printf.md @@ -4,19 +4,19 @@ - Print a text message: -`printf {{"%s\n"}} {{"Hello world"}}` +`printf "{{%s\n}}" "{{Hello world}}"` - Print an integer in bold blue: -`printf {{"\e[1;34m%.3d\e[0m\n"}} {{42}}` +`printf "{{\e[1;34m%.3d\e[0m\n}}" {{42}}` - Print a float number with the unicode Euro sign: -`printf {{"\u20AC %.2f\n"}} {{123.4}}` +`printf "{{\u20AC %.2f\n}}" {{123.4}}` - Print a text message composed with environment variables: -`printf {{"var1: %s\tvar2: %s\n"}} {{"$VAR1"}} {{"$VAR2"}}` +`printf "{{var1: %s\tvar2: %s\n}}" "{{$VAR1}}" "{{$VAR2}}"` - Store a formatted message in a variable (does not work on zsh): diff --git a/pages/common/read.md b/pages/common/read.md index 3870c0889..b05cd19f6 100644 --- a/pages/common/read.md +++ b/pages/common/read.md @@ -28,7 +28,7 @@ - Display a prompt before the input: -`read -p {{"Enter your input here: "}} {{variable}}` +`read -p "{{Enter your input here: }}" {{variable}}` - Do not echo typed characters (silent mode): diff --git a/pages/common/scheme.md b/pages/common/scheme.md index 4c6c7e2db..836c504a8 100644 --- a/pages/common/scheme.md +++ b/pages/common/scheme.md @@ -17,7 +17,7 @@ - Load scheme expressions into the REPL: -`scheme --eval {{"(define foo 'x)"}}` +`scheme --eval "{{(define foo 'x)}}"` - Open the REPL in quiet mode: diff --git a/pages/common/shc.md b/pages/common/shc.md index 5303d33dd..14e7fcd78 100644 --- a/pages/common/shc.md +++ b/pages/common/shc.md @@ -16,4 +16,4 @@ - Compile a shell script and set a message to display upon expiration: -`shc -f {{script}} -e {{dd/mm/yyyy}} -m {{"Please contact your provider"}}` +`shc -f {{script}} -e {{dd/mm/yyyy}} -m "{{Please contact your provider}}"` diff --git a/pages/common/sqlmap.md b/pages/common/sqlmap.md index 86a1d379a..069e64567 100644 --- a/pages/common/sqlmap.md +++ b/pages/common/sqlmap.md @@ -5,20 +5,20 @@ - Run sqlmap against a single target URL: -`python sqlmap.py -u {{"http://www.target.com/vuln.php?id=1"}}` +`python sqlmap.py -u "{{http://www.target.com/vuln.php?id=1}}"` - Send data in a POST request (`--data` implies POST request): -`python sqlmap.py -u {{"http://www.target.com/vuln.php"}} --data={{"id=1"}}` +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --data="{{id=1}}"` - Change the parameter delimiter (& is the default): -`python sqlmap.py -u {{"http://www.target.com/vuln.php"}} --data={{"query=foobar;id=1"}} --param-del={{";"}}` +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --data="{{query=foobar;id=1}}" --param-del="{{;}}"` - Select a random `User-Agent` from `./txt/user-agents.txt` and use it: -`python sqlmap.py -u {{"http://www.target.com/vuln.php"}} --random-agent` +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --random-agent` - Provide user credentials for HTTP protocol authentication: -`python sqlmap.py -u {{"http://www.target.com/vuln.php"}} --auth-type {{Basic}} --auth-cred {{"testuser:testpass"}}` +`python sqlmap.py -u "{{http://www.target.com/vuln.php}}" --auth-type {{Basic}} --auth-cred "{{testuser:testpass}}"` diff --git a/pages/common/tar.md b/pages/common/tar.md index 9523d6a9e..c4a28b1d0 100644 --- a/pages/common/tar.md +++ b/pages/common/tar.md @@ -34,7 +34,7 @@ - Extract files matching a pattern: -`tar xf {{source.tar}} --wildcards {{"*.html"}}` +`tar xf {{source.tar}} --wildcards "{{*.html}}"` - Extract a specific file without preserving the folder structure: diff --git a/pages/common/transmission-remote.md b/pages/common/transmission-remote.md index 5ce556a5b..c83070cdd 100644 --- a/pages/common/transmission-remote.md +++ b/pages/common/transmission-remote.md @@ -17,7 +17,7 @@ - Start torrent 1 and 2, stop torrent 3: -`transmission-remote {{hostname}} -t {{"1,2"}} --start -t {{3}} --stop` +`transmission-remote {{hostname}} -t "{{1,2}}" --start -t {{3}} --stop` - Remove torrent 1 and 2, and also delete local data for torrent 2: @@ -29,4 +29,4 @@ - Move torrents 1-10 and 15-20 to a new folder (folder will be created if it does not exist): -`transmission-remote {{hostname}} -t {{"1-10,15-20"}} --move {{path/to/new_directory}}` +`transmission-remote {{hostname}} -t "{{1-10,15-20}}" --move {{path/to/new_directory}}` diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md index 57e4ac15a..5f540fb74 100644 --- a/pages/common/youtube-dl.md +++ b/pages/common/youtube-dl.md @@ -13,7 +13,7 @@ - Download a video or playlist at a specific quality: -`youtube-dl --format {{"best[height<=480]"}} {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` +`youtube-dl --format "{{best[height<=480]}}" {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` - Download the audio from a video and convert it to an MP3: @@ -25,7 +25,7 @@ - Download video(s) as MP4 files with custom filenames: -`youtube-dl --format {{mp4}} -o {{"%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s"}} {{url}}` +`youtube-dl --format {{mp4}} -o "{{%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s}}" {{url}}` - Download a particular language's subtitles along with the video: diff --git a/pages/linux/bitwise.md b/pages/linux/bitwise.md index ba18868a7..f5a92a62d 100644 --- a/pages/linux/bitwise.md +++ b/pages/linux/bitwise.md @@ -17,4 +17,4 @@ - Convert a C-style calculation: -`bitwise {{"0x123 + 0x20 - 30 / 50"}}` +`bitwise "{{0x123 + 0x20 - 30 / 50}}"` diff --git a/pages/linux/dunstify.md b/pages/linux/dunstify.md index a74af20cb..309c99195 100644 --- a/pages/linux/dunstify.md +++ b/pages/linux/dunstify.md @@ -5,15 +5,15 @@ - Show a notification with a given title and message: -`dunstify {{"Title"}} {{"Message"}}` +`dunstify "{{Title}}" "{{Message}}"` - Show a notification with specified urgency: -`dunstify {{"Title"}} {{"Message}}" -u {{low|normal|critical}}` +`dunstify "{{Title}}" "{{Message}}" -u {{low|normal|critical}}` - Specify a message ID (overwrites any previous messages with the same ID): -`dunstify {{"Title"}} {{"Message"}} -r {{123}}` +`dunstify "{{Title}}" "{{Message}}" -r {{123}}` - To see other possible options: diff --git a/pages/linux/e2label.md b/pages/linux/e2label.md index ccc8b1e71..280e2bd0d 100644 --- a/pages/linux/e2label.md +++ b/pages/linux/e2label.md @@ -4,4 +4,4 @@ - Change the volume label on a specific ext partition: -`e2label {{/dev/sda1}} {{"label_name"}}` +`e2label {{/dev/sda1}} "{{label_name}}"` diff --git a/pages/linux/eyeD3.md b/pages/linux/eyeD3.md index e8b0cd0b5..444818f9f 100644 --- a/pages/linux/eyeD3.md +++ b/pages/linux/eyeD3.md @@ -9,11 +9,11 @@ - Set the title of an MP3 file: -`eyeD3 --title {{"A Title"}} {{filename.mp3}}` +`eyeD3 --title "{{A Title}}" {{filename.mp3}}` - Set the album of all the MP3 files in a directory: -`eyeD3 --album {{"Album Name"}} {{*.mp3}}` +`eyeD3 --album "{{Album Name}}" {{*.mp3}}` - Set the front cover art for an MP3 file: diff --git a/pages/linux/mkisofs.md b/pages/linux/mkisofs.md index 3e3d0c6e1..bf1706537 100644 --- a/pages/linux/mkisofs.md +++ b/pages/linux/mkisofs.md @@ -9,4 +9,4 @@ - Set the disc label when creating an ISO: -`mkisofs -o {{filename.iso}} -V {{"label_name"}} {{path/to/source_directory}}` +`mkisofs -o {{filename.iso}} -V "{{label_name}}" {{path/to/source_directory}}` diff --git a/pages/linux/notify-send.md b/pages/linux/notify-send.md index 6a9741699..0b08d0cfd 100644 --- a/pages/linux/notify-send.md +++ b/pages/linux/notify-send.md @@ -4,16 +4,16 @@ - Show a notification with the title "Test" and the content "This is a test": -`notify-send {{"Test"}} {{"This is a test"}}` +`notify-send "{{Test}}" "{{This is a test}}"` - Show a notification with a custom icon: -`notify-send -i {{icon.png}} {{"Test"}} {{"This is a test"}}` +`notify-send -i {{icon.png}} "{{Test}}" "{{This is a test}}"` - Show a notification for 5 seconds: -`notify-send -t 5000 {{"Test"}} {{"This is a test"}}` +`notify-send -t 5000 "{{Test}}" "{{This is a test}}"` - Show a notification with an app's icon: -`notify-send {{"Test"}} --icon={{google-chrome}}` +`notify-send "{{Test}}" --icon={{google-chrome}}` diff --git a/pages/linux/snapper.md b/pages/linux/snapper.md index 3055d4e46..dcfaca834 100644 --- a/pages/linux/snapper.md +++ b/pages/linux/snapper.md @@ -13,7 +13,7 @@ - Create a snapshot with a description: -`snapper -c {{config}} create -d {{"snapshot_description"}}` +`snapper -c {{config}} create -d "{{snapshot_description}}"` - List snapshots for a config: diff --git a/pages/linux/timedatectl.md b/pages/linux/timedatectl.md index 0d2170bbb..16b9c9315 100644 --- a/pages/linux/timedatectl.md +++ b/pages/linux/timedatectl.md @@ -8,7 +8,7 @@ - Set the local time of the system clock directly: -`timedatectl set-time {{"yyyy-MM-dd hh:mm:ss"}}` +`timedatectl set-time "{{yyyy-MM-dd hh:mm:ss}}"` - List available timezones: diff --git a/pages/linux/ufw.md b/pages/linux/ufw.md index 72532088d..c35d33aaf 100644 --- a/pages/linux/ufw.md +++ b/pages/linux/ufw.md @@ -17,7 +17,7 @@ - Allow incoming traffic on port 5432 on this host with a comment identifying the service: -`ufw allow {{5432}} comment {{"Service"}}` +`ufw allow {{5432}} comment "{{Service}}"` - Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22: diff --git a/pages/linux/units.md b/pages/linux/units.md index 712496388..ab3ed6383 100644 --- a/pages/linux/units.md +++ b/pages/linux/units.md @@ -17,8 +17,8 @@ - Show the conversion between two compound units: -`units {{"meters / second"}} {{"inches / hour"}}` +`units "{{meters / second}}" "{{inches / hour}}"` - Show the conversion between units with different dimensions: -`units {{"acres"}} {{"ft^2"}}` +`units "{{acres}}" "{{ft^2}}"` diff --git a/pages/linux/yank.md b/pages/linux/yank.md index 92d8331ea..9cd2a4983 100644 --- a/pages/linux/yank.md +++ b/pages/linux/yank.md @@ -16,4 +16,4 @@ - Only yank fields matching a specific pattern: -`{{ps ux}} | yank -g {{"[0-9]+"}}` +`{{ps ux}} | yank -g "{{[0-9]+}}"` diff --git a/pages/osx/codesign.md b/pages/osx/codesign.md index 16d34f33e..3441ea62a 100644 --- a/pages/osx/codesign.md +++ b/pages/osx/codesign.md @@ -4,7 +4,7 @@ - Sign an application with a certificate: -`codesign -s {{"My Company Name"}} {{/path/to/App.app}}` +`codesign -s "{{My Company Name}}" {{/path/to/App.app}}` - Verify the certificate of an application: diff --git a/pages/osx/networksetup.md b/pages/osx/networksetup.md index fb7df8197..39a3c48ed 100644 --- a/pages/osx/networksetup.md +++ b/pages/osx/networksetup.md @@ -8,7 +8,7 @@ - Show network settings for a particular networking device: -`networksetup -getinfo {{"Wi-Fi"}}` +`networksetup -getinfo "{{Wi-Fi}}"` - Get currently connected Wi-Fi network name (Wi-Fi device usually en0 or en1): @@ -16,4 +16,4 @@ - Connect to a particular Wi-Fi network: -`networksetup -setairportnetwork {{en0}} {{"Airport Network SSID"}} {{password}}` +`networksetup -setairportnetwork {{en0}} "{{Airport Network SSID}}" {{password}}` diff --git a/pages/osx/say.md b/pages/osx/say.md index a3e8064e0..195d02f85 100644 --- a/pages/osx/say.md +++ b/pages/osx/say.md @@ -4,7 +4,7 @@ - Say a phrase aloud: -`say {{"I like to ride my bike."}}` +`say "{{I like to ride my bike.}}"` - Read a file aloud: @@ -12,7 +12,7 @@ - Say a phrase with a custom voice and speech rate: -`say -v {{voice}} -r {{words_per_minute}} {{"I'm sorry Dave, I can't let you do that."}}` +`say -v {{voice}} -r {{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"` - List the available voices: @@ -20,4 +20,4 @@ - Create an audio file of the spoken text: -`say -o {{filename.aiff}} {{"Here's to the Crazy Ones."}}` +`say -o {{filename.aiff}} "{{Here's to the Crazy Ones.}}"` diff --git a/pages/osx/units.md b/pages/osx/units.md index 5d01b9086..7e3f4f7a3 100644 --- a/pages/osx/units.md +++ b/pages/osx/units.md @@ -12,16 +12,16 @@ - Convert between units with quantities: -`units {{"15 pounds"}} {{kilograms}}` +`units "{{15 pounds}}" {{kilograms}}` - Show the conversion between two compound units: -`units {{"meters / second"}} {{"inches / hour"}}` +`units "{{meters / second}}" "{{inches / hour}}"` - Show the conversion between units with different dimensions: -`units {{"acres"}} {{"ft^2"}}` +`units "{{acres}}" "{{ft^2}}"` - Show the conversion of byte multipliers: -`units {{"15 megabytes"}} {{bytes}}` +`units "{{15 megabytes}}" {{bytes}}` diff --git a/pages/osx/yank.md b/pages/osx/yank.md index 92d8331ea..9cd2a4983 100644 --- a/pages/osx/yank.md +++ b/pages/osx/yank.md @@ -16,4 +16,4 @@ - Only yank fields matching a specific pattern: -`{{ps ux}} | yank -g {{"[0-9]+"}}` +`{{ps ux}} | yank -g "{{[0-9]+}}"` diff --git a/pages/windows/eventcreate.md b/pages/windows/eventcreate.md index 770e0c948..a63a13f13 100644 --- a/pages/windows/eventcreate.md +++ b/pages/windows/eventcreate.md @@ -18,4 +18,4 @@ - Create an event in a remote machine's event log: -`eventcreate /s {{hostname}} /u {{username}} /p {{password}} /t {{type}} /id {{id}} /d "{{message"}}` +`eventcreate /s {{hostname}} /u {{username}} /p {{password}} /t {{type}} /id {{id}} /d "{{message}}"` diff --git a/pages/windows/units.md b/pages/windows/units.md index ab4d9e104..eb1075011 100644 --- a/pages/windows/units.md +++ b/pages/windows/units.md @@ -16,8 +16,8 @@ - Show the conversion between two compound units: -`units {{"meters / second"}} {{"inches / hour"}}` +`units "{{meters / second}}" "{{inches / hour}}"` - Show the conversion between units with different dimensions: -`units {{"acres"}} {{"ft^2"}}` +`units "{{acres}}" "{{ft^2}}"`