printf in bash
Behdad Esfahbod
behdad-26n5VD7DAF2Tm46uYYfjYg at public.gmane.org
Thu Jun 15 20:19:35 UTC 2006
On Thu, 2006-06-15 at 13:33 -0400, Neil Watson wrote:
> On Thu, Jun 15, 2006 at 08:25:46PM +0300, Peter wrote:
> >plp at plp:~$ cat <<END
> >>This is line two with quotations ""
> >>END
>
> What about quoting the string so that no special characters are
> interpreted? The eqiuvilant of using single quotes?
[behdad at home devel]$ cat <<END
> echo $PWD
> END
echo /home/behdad/src/redhat/pango/devel
[behdad at home devel]$ cat <<\END
> echo PWD
> END
echo PWD
--
behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list