cat EOF 使用一例,用下面方法很简单的按格式写入文本:
#!/bin/sh
cat <<EOF >>/etc/hosts Please Write your message want to attach here. # This is just a test.
127.0.0.1 localhost EOF
#----------- echo 'test' >> /etc/hosts
sed...
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.