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多了个空格,取消即可。

猜你喜欢

转载自www.cnblogs.com/Dev0ps/p/9475893.html
今日推荐