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 "..." % ...
>>
>> So, perhaps, you can use syntax like
>> cat <<+ file
>> cat <<<< file
>
>
> Why can't you use:
>
> cat < file
Because he wants variable substitution. Something like
cat <<< "$(< file)"
might work.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash