维基百科
http://en.wikipedia.org/wiki/Here_document
具体应用:
与sqlplus、rman命令行的交互,例如
$ more rman.sh
#!/bin/bash
rman target / <<!
show all;
exit;
这个命令就可以备份数据库
维基百科
http://en.wikipedia.org/wiki/Here_document
具体应用:
与sqlplus、rman命令行的交互,例如
$ more rman.sh
#!/bin/bash
rman target / <<!
show all;
exit;
这个命令就可以备份数据库