0
아래의 예에서 todel.txt 파일에 $ a = b 줄을 기다리고있었습니다. 문서의 텍스트 블록을 처리하지 않고 그대로 추가하려면 어떻게합니까?여기에서 사전 처리 됨 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"를 참조하십시오. –