转自:http://blog.csdn.net/apache0554/article/details/45508631 cat <<EOF和cat <<-EOF两个都是获取stdin,并在EOF处结束stdin,输出stdout. 但是<<-是什么意思呢? 先来看man中的说明: If the redirection operator is <<-, then all leading tab characters are stripped from inpu
原文:http://blog.csdn.net/apache0554/article/details/45508631 ----------------------------------------------------------------------------------- 两个都是获取stdin,并在EOF处结束stdin,输出stdout. 但是<<-是什么意思呢? 先来看man中的说明: If the redirection operator is <<-, th
查询员工信息 -S:静默登录 [oracle@localhost shells]$ cat shell1.sh #!/bin/bash #查询员工信息 sqlplus -S /nolog <<EOF conn scott/scott set feedback off set linesize 300 set pagesize 100 col empno for 99999 col ename for a12 col mgr for 9999 col hiredate for a20 col c