bug-bash
[Top][All Lists]
Advanced

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

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


From: William Park
Subject: (feature request) here-document, but from a file
Date: Sat, 2 Jul 2005 18:31:48 -0400
User-agent: Mutt/1.4.2i

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

-- 
William Park <opengeometry@yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
           http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
          http://freshmeat.net/projects/bashdiff/




reply via email to

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