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?
- Add "set list" at .vimrc
- Open my script by vim
- There is did exist an blank space behind EOF.
- Remove this blank space.
What is "set list" ?
"Set list" can be used to show white blank spaces.
Error:warning: here-document at line 18 delimited by end-of-file (wanted `EOF')
时间: 2024-11-05 12:25:20