The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: shell script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-08-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
The sqlplus command needs some input. That will come from the lines following the command up to a line that says simply "EOF" without the quotes. That explains sqlplus tkyte/tkyte <<"EOF" except for the quotes around EOF. They tell the shell to not change anything in the lines fed in as input.

The sqlplus command is expected to produce output which will be piped into:
grep '^#' | sed 's/^.//' > tmp.csh
The grep statement rejects any lines that do not start with a # and the sed statement removes the first character from every line. The resulting output is sent to tmp.csh.