printf in bash

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Thu Jun 15 18:12:20 UTC 2006


On Thu, Jun 15, 2006 at 01:00:00PM -0400, Neil Watson wrote:
> In Perl I can use print like this:
> 
> print <<"*END*";
> This is line one
> This is line two with quotations ""
> *END*
> 
> Is there an equivalent in bash?

Yes.  sed 's/print/cat/'

-- 
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, 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/
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list