测试
[root@k81 ~]# cat > hello.sh <<EOF
#!/bin/bash
echo “hello world!”
EOF
[root@k81 ~]# sh hello.sh
hello world!
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 小陈运维!
[root@k81 ~]# cat > hello.sh <<EOF
#!/bin/bash
echo “hello world!”
EOF
[root@k81 ~]# sh hello.sh
hello world!