mo/demo/using-arrays
2015-01-28 09:44:44 -06:00

10 lines
211 B
Bash
Executable File

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