Error:warning: here-document at line 18 delimited by end-of-file (wanted `EOF')

Context: wrote a script to get all ips for product but always get this error.
 
as below:
 
./getAllIps.sh: line 21: warning: here-document at line 18 delimited by end-of-file (wanted `EOF')
 
How to solve it?
  1. Add "set list" at .vimrc
  2. Open my script by vim
  3. There is did exist an blank space behind EOF.
  4. Remove this blank space.
 
What is "set list" ?
 
"Set list" can be used to show white blank spaces.
posted @ 2017-08-31 11:29  SuperStar~  阅读(1685)  评论(0编辑  收藏  举报