From 8ede0fd8effe19d583935b0e1f6d571764b659eb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 22 May 2018 09:59:30 -0400 Subject: [PATCH] Document {{}} escape on noderun and nodeshell Documentation did not explain that --- confluent_client/doc/man/noderun.ronn | 4 ++++ confluent_client/doc/man/nodeshell.ronn | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/confluent_client/doc/man/noderun.ronn b/confluent_client/doc/man/noderun.ronn index 626bb685..d8298ffd 100644 --- a/confluent_client/doc/man/noderun.ronn +++ b/confluent_client/doc/man/noderun.ronn @@ -48,6 +48,10 @@ themselves, see nodeshell(8). `n4: 01 10 00` `n2: 01 10 00` + +* If wanting to use literal {} in the command, they must be escaped by doubling: + `# noderun n1-n4 "echo {node} | awk '{{print $1}}'"` + ## SEE ALSO nodeshell(8) diff --git a/confluent_client/doc/man/nodeshell.ronn b/confluent_client/doc/man/nodeshell.ronn index 7c4c57ba..6dc81ccb 100644 --- a/confluent_client/doc/man/nodeshell.ronn +++ b/confluent_client/doc/man/nodeshell.ronn @@ -27,7 +27,10 @@ as stderr, unlike psh which combines all stdout and stderr into stdout. `n4: hi` * Setting a new static ip address temporarily on secondary interface of four nodes: - `# nodeshell n1-n4 ifconfig eth1 172.30.93.{n1}` + `# nodeshell n1-n4 ifconfig eth1 172.30.93.{n1}` + +* If wanting to use literal {} in the command, they must be escaped by doubling: + `# nodeshell n1-n4 "ps | awk '{{print $1}}'"` ## SEE ALSO