input01.sh: line 11: warning: here-document at line 4 delimited by end-of-file (wanted `EOF') input01.sh: line 12: syntax error: unexpected end of file

写了个脚本用cat>>EOF报错如下:

input01.sh: line 11: warning: here-document at line 4 delimited by end-of-file (wanted `EOF')
input01.sh: line 12: syntax error: unexpected end of file


原因:最后的EOF多了个空格,取消即可。

posted @ 2018-08-14 17:16  西门运维  阅读(888)  评论(0编辑  收藏  举报