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