Make sure you are putting that in between the echo <<<EOF and EOF; lines. If it's above or below those, then you'll get an error.