From 382858851246c999fa42b5d64222dd774171a672 Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Thu, 22 Aug 2019 15:59:05 -0500 Subject: [PATCH] Showing how to write output that includes braces --- demo/writing-out-braces | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 demo/writing-out-braces diff --git a/demo/writing-out-braces b/demo/writing-out-braces new file mode 100755 index 0000000..2193243 --- /dev/null +++ b/demo/writing-out-braces @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +cd "$(dirname "$0")" # Go to the script's directory + + +export OPEN="{{" +export CLOSE="}}" +cat <<'EOF' | mo +You can use environment variables to write output that has double braces. + + {{OPEN}}sampleTag{{CLOSE}} +EOF