В приведенном ниже примере я ожидал
$ А = Ь
в файле todel.txt.
Как добавить здесь текстовый блок doc без обработки?
[root@localhost]# cat here_example.sh
#!/bin/sh
cat > todel.txt << heredoc
<?php
$a=b
# this is comment
?>
heredoc
[root@localhost]# cat todel.txt
<?php
=b
# this is comment
?>