Insert psql commands inside a script - Mailing list pgsql-sql

From Letnes, David G.
Subject Insert psql commands inside a script
Date
Msg-id 2F1DE8CC97C00645B9FEA539982DA22401900D5A@USEA-EXCH4.na.uis.unisys.com
Whole thread Raw
Responses Re: Insert psql commands inside a script  (Michael Fuhr <mike@fuhr.org>)
Re: [despammed] Insert psql commands inside a script  (Andreas Kretschmer <akretschmer@despammed.com>)
List pgsql-sql
<br /><p><font face="Arial" size="2">  I have used the psql -f /tmp/SelectCommands.sql before, but now I want to put
thesql statement right in the shell script.  I haven't had any luck.  Is there a command I can use that will not point
toa file for the sql instructions but right on the same line.  I use very short psql commands and would like to do it
allwith 1 file.</font><p><font face="Arial" size="2">Thank You</font><br /><font face="Arial"
size="2">David</font><ul><p><b><fontcolor="#000000" face="Arial" size="1">THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL
AND/OROTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error,
pleasecontact the sender and delete the e-mail and its attachments from all computers. </font></b><br /></ul> 

pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: C function - other process
Next
From: "Ramakrishnan Muralidharan"
Date:
Subject: Re: 'Select INTO" in Execute (dynamic query )