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

it2022-05-05  89

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

转载于:https://www.cnblogs.com/Dev0ps/p/9475893.html


最新回复(0)