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 substitution,
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, perhaps, you can use
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 EOT
`cat file`
EOT
But this breaks if file contains an EOT line.
paul
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 do
print ...