Linux 错误:delimited by end-of-file (wanted `EOF')
来源:互联网 发布:微软亚洲研究院 知乎 编辑:程序博客网 时间:2024/05/18 15:31
MySQL -u $USER -p${PASSWORD} $DATABASE << EOF >/tmp/dd-
select *
from $TABLE;
EOF
cat /tmp/dd-$$ |sed '1d'
执行此test.shell报如下错:
warning: here-document at line 17 delimited by end-of-file (wanted `EOF')
原因是末尾的EOF后面带有空格,EOF前后都不应有空格或其他符号
阅读全文
0 0
- Linux 错误:delimited by end-of-file (wanted `EOF')
- warning: here-document at line 17 delimited by end-of-file (wanted `EOF')
- ./cut.sh: line 37: warning: here-document at line 5 delimited by end-of-file (wanted `EOF')
- EOF 键盘输入end of file
- EOF 是 End Of File 的缩写。
- EOF——End Of File
- EOF(End OF File)在Linux命令和脚本中表示用户自定义终止符
- premature end of file错误
- mvn install时Premature end of Content-Length delimited message body错误
- Shell中EOF出现syntax error: unexpected end of file
- Shell脚本自动输入EOF error :end-of-file
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- 错误 no newline at end of file
- Premature end of file 错误解决
- gzip: stdin: unexpected end of file 错误
- gzip: stdin: unexpected end of file 错误
- Linux unexpected end of file ,`xxxx' unexpected
- Linux下面运行shell脚本出现unexpected end of file错误
- POJ 1836 Alignment 笔记
- 多线程的几种实现方式
- 多线程连接数据库查询数据
- 3668: [Noi2014]起床困难综合症
- 35 个 Java 代码性能优化总结
- Linux 错误:delimited by end-of-file (wanted `EOF')
- hdu魔板 康拓展开
- JAVA多线程实现的三种方式
- 关于多线程Callable和Future
- 多线程下的Socket网络通信
- 多线程BaseDao实现在同一内存中实现多个连接对象
- POJ3233---Matrix Power Series (矩阵快速幂(升级):矩阵套矩阵)
- 多线程三种方式2
- 各种多线程