0
在下面给出的示例中,我期待在todel.txt文件中的行 $ a = b 。 如何在不处理的情况下添加here doc文本块?此处预处理文档
[[email protected]]# cat here_example.sh
#!/bin/sh
cat > todel.txt << heredoc
<?php
$a=b
# this is comment
?>
heredoc
[[email protected]]# cat todel.txt
<?php
=b
# this is comment
?>
请参阅Bash联机帮助页上的“Here Documents”。 –