![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| here document not working | JamesByars | Shell Programming and Scripting | 2 | 01-15-2008 04:41 PM |
| The here document << | rahulrathod | Shell Programming and Scripting | 6 | 01-23-2006 12:05 AM |
| Teaching myself Here Document | ericelysia | UNIX for Dummies Questions & Answers | 3 | 10-31-2005 12:33 AM |
| echo with a here-document | vino | Shell Programming and Scripting | 2 | 08-19-2005 10:48 AM |
| How to split a document | gtapia | Shell Programming and Scripting | 2 | 07-15-2004 06:25 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Sqlplus 'here' document: <<EOF vs. <<-EOF
Hi,
I've noticed two variations of embedded sqlplus 'here' documents used as input to sqlplus. Most examples seem to use the following format with EOF (or some other unique identifier) directly appended to the << as shown below. sqlplus -s /nolog <<EOF connect username/password@mydatabase select......... ................. / EOF Another variation is almost identical except that << is separated from EOF by a '-', as in <<-EOF. I've been searching the documentation and other threads and cannot find the significance of one vs. the other. Is there any functional difference between <<- and << ? is one better than the other? Thanks! |
|
||||
|
hi did u get the reason for that?
not only that,i have tried out diff possibilities and i find that you can use any string consisting of one or more letters and numbers... i tried to ask pepl but didnt get any a satisfactory answer also in -------------------<< X statements... .... Y kind of blocks that u just mentioned....it is also not necessary that X be equal to Y.... i hope ur gettin what i mean to convey.. ok then...wil wait for ur reply... bye |
|
||||
|
'here' block
hi thanks for the examples..
but there is one more thing that stumps me... how does a 'here' block conceptually work...? i mean what is the control flow and why does it so happen that the thing written within the here block is executed by that coresspong application.. also can u pls give an example for the bash shell? thanks agai... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|