I'm creating a script which create file and insert content using
cat > /etc/file <<END
FILE CONTENT
END
It works for most files but it doesn't work when file content have shell commands in it. I tried with the echo command but i have the same problem.
Why does it execute commands ?