mo/demo/using-arrays

11 lines
214 B
Plaintext
Raw Normal View History

2015-01-28 15:44:44 +00:00
#!/bin/bash
cd "$(dirname "$0")" # Go to the script's directory
export ARRAY=( one two "three three three" four five )
. ../mo
cat << EOF | mo
2015-01-28 15:44:44 +00:00
Here are the items in the array:
{{#ARRAY}}
* {{.}}
{{/ARRAY}}
EOF