$ cat >> gzip_work.sh <<EOF > mkdir gzip/workshell > EOF
用cat写入
原文:https://www.cnblogs.com/yuanjingnan/p/12370708.html