I have this script
for ((i=0 ; $i<=$c ; i++))
do
cat <<"EOF" >my_file.html
line 1
line 2
...
EOF
done
It is supposed to write some specific lines in each loop but my file is empty and i always get this error
syntax error: unexpected end of file
Before this loop i have another use of cat exactly like this
cat <<"EOF" >my_file.html
line1
...
line n
EOF
After running the script my_file.html contains these n lines but none of the loop lines.