SHELL EOF
2015-06-15 00:00
507 查看
在shell编程中,”EOF“通常与”<<“结合使用,“<<EOF“表示后续的输入作为子命令或子shell的输入,直到遇到”EOF“,再次返回到主调shell,可将其理解为分界符(delimiter)。既然是分界符,那么形式自然不是固定的,这里可以将”EOF“可以进行自定义,但是前后的”EOF“必须成对出现且不能和shell命令冲突。其使用形式如下:
交互式程序(命令)<<EOF
command1
command2
...
EOF
交互式程序(命令)<<EOF
command1
command2
...
EOF
相关文章推荐
- linux bash
- 如何在PowerShell中用replace巧妙地替换字符串
- shell删除指定日期之前修改过的文件
- 使用Xshell连接Ubuntu
- adb shell screenrecord /sdcard/myscreenrecord.mp4 录视频
- PowerShell
- Linux下执行Shell脚本
- shell学习十四天----使用cut选定字段
- shell学习十三天----sed案例分析
- Xshell远程连接Ubuntu
- bash array
- 最全xshell实用经典 附件
- bash调试经验
- npm should be run outside of the node repl, in your normal shell
- 一个Linux中用于监控的简易shell脚本
- linux shell之sed
- linux shell在while中用read从键盘输入
- Android adb shell命令
- SHELL中常用特殊变量
- shell脚本获得本机ip地址