EOF的用法

EOF.sh EOF的内容追加到test.conf

#!/bin/bash

cat >> ~/test.conf << EOF
fs.file-max = 999999
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
EOF

EOF2.sh EOF的内容替换到test.conf

#!/bin/bash

cat > ~/test.conf << EOF
fs.file-max = 999999
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
EOF

 

posted @ 2020-09-23 18:00  豆浆D  阅读(176)  评论(0编辑  收藏  举报