bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (feature request) here-document, but from a file


From: Paul Jarc
Subject: Re: (feature request) here-document, but from a file
Date: Sat, 02 Jul 2005 19:59:05 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

William Park <opengeometry@yahoo.ca> wrote:
> It would be nice if I can read a file and process it as though it was
> here-document text in the script.  Mainly, I want variable substitution,
> without calling lots of 'sed'.

eval "blah <<EOT
`cat file`
EOT"

But this breaks if file contains an "EOT" line.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]