Showing how to write output that includes braces

This commit is contained in:
Tyler Akins 2019-08-22 15:59:05 -05:00
parent 929ffc5b88
commit 3828588512
No known key found for this signature in database
GPG Key ID: 8F3B8C432F4393BD

12
demo/writing-out-braces Executable file
View File

@ -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