The goal is to use the bash function inside the cat lines that creates an html file.
Must be easy knowing the way, but this does not "compile" while writing at Sublime:
#!/usr/bin/env bash
function create_file_with_random_numbers {
file="/User/example/folder/random_numbers.html"
bash -c cat <<EOF >${file}
Your random numbers are: "[ { $(( RANDOM % 70 )) } and { $(( RANDOM % 70 )) } ]"
EOF
}
I tried to scape the cat file with ", [, {, etc., is it possible?
Thanks