|
From: | Chris F.A. Johnson |
Subject: | Re: (feature request) here-document, but from a file |
Date: | Sat, 2 Jul 2005 19:29:23 -0400 (EDT) |
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 -- Chris F.A. Johnson <http://cfaj.freeshell.org> ================================================================== Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress <http://www.torfree.net/~chris/books/cfaj/ssr.html>
[Prev in Thread] | Current Thread | [Next in Thread] |