mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
doc: replace "echo -e" with "printf" in user's guide
This commit is contained in:
@@ -2042,7 +2042,7 @@ $ echo '*hello!' >~/.weechat/weechat_fifo_12345
|
||||
mit "\n" getrennt werden):
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
Das nachfolgende Skript sendet einen Befehl an alle laufenden WeeChat Instanzen:
|
||||
@@ -2053,7 +2053,7 @@ Das nachfolgende Skript sendet einen Befehl an alle laufenden WeeChat Instanzen:
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
@@ -2003,7 +2003,7 @@ $ echo '*hello!' >~/.weechat/weechat_fifo_12345
|
||||
with "\n"):
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
You can write a script to send command to all running WeeChat at same time,
|
||||
@@ -2015,7 +2015,7 @@ for example:
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
@@ -2071,7 +2071,7 @@ $ echo '*bonjour !' >~/.weechat/weechat_fifo_12345
|
||||
les séparer par "\n") :
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
Vous pouvez écrire un script qui envoie les commandes à tous les WeeChat qui
|
||||
@@ -2083,7 +2083,7 @@ tournent en même temps, par exemple :
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
@@ -2085,7 +2085,7 @@ $ echo '*hello!' >~/.weechat/weechat_fifo_12345
|
||||
separarli con "\n"):
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
È possibile realizzare uno script per inviare un comando a tutte le istanze di
|
||||
@@ -2097,7 +2097,7 @@ WeeChat in esecuzione, per esempio:
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
@@ -2006,7 +2006,7 @@ $ echo '*hello!' >~/.weechat/weechat_fifo_12345
|
||||
(複数のコマンドは "\n" で分割してください):
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
実行中の WeeChat
|
||||
@@ -2018,7 +2018,7 @@ $ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
@@ -2022,7 +2022,7 @@ $ echo '*hello!' >~/.weechat/weechat_fifo_12345
|
||||
oddzielić je za pomocą "\n"):
|
||||
|
||||
----
|
||||
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
|
||||
$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345
|
||||
----
|
||||
|
||||
Można napisać skrypt wysyłający komendy do wszystkich uruchomionych kopi WeeChat
|
||||
@@ -2034,7 +2034,7 @@ w tym samym czasie, na przykład:
|
||||
if [ $# -eq 1 ]; then
|
||||
for fifo in ~/.weechat/weechat_fifo_*
|
||||
do
|
||||
echo -e "$1" >$fifo
|
||||
printf '%b\n' "$1" >"$fifo"
|
||||
done
|
||||
fi
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user