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

2005-07-03 Thread William Park
On Sat, Jul 02, 2005 at 11:43:36PM -0400, Chet Ramey wrote: > Chris F.A. Johnson wrote: > > On Sat, 2 Jul 2005, William Park wrote: > > > >> Dear Chet, > >> > >> 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 su

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

2005-07-02 Thread Chet Ramey
Chris F.A. Johnson wrote: > On Sat, 2 Jul 2005, William Park wrote: > >> Dear Chet, >> >> 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'. >> >> In Python, you would d

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

2005-07-02 Thread William Park
On Sat, Jul 02, 2005 at 05:48:40PM -0600, Bob Proulx wrote: > Chris F.A. Johnson wrote: > > William Park 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'

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

2005-07-02 Thread Paul Jarc
William Park <[EMAIL PROTECTED]> 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

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

2005-07-02 Thread Bob Proulx
Chris F.A. Johnson wrote: > William Park 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'. > > > >In Python, you would do > > print "..." % ... > > > >So, pe

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

2005-07-02 Thread Chris F.A. Johnson
On Sat, 2 Jul 2005, William Park wrote: Dear Chet, 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'. In Python, you would do print "..." % ... So, perhaps, you can us

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

2005-07-02 Thread William Park
Dear Chet, 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'. In Python, you would do print "..." % ... So, perhaps, you can use syntax like cat <<+ file cat <<<