help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Assigning to a variable using here document?


From: Dennis Williamson
Subject: Re: [Help-bash] Assigning to a variable using here document?
Date: Thu, 27 Sep 2012 10:29:05 -0500


On Sep 27, 2012 10:14 AM, "Peng Yu" <address@hidden> wrote:
>
> Hi,
>
> In perl, the following code can be used to assign a variable using
> here document.
>
> my $shell_script_stdout = <<`END`;
> echo foo
> echo bar
> END
>
> But I don't see this in bash. Is there something similar available in
> bash? Thanks!
>
> --
> Regards,
> Peng
>

http://stackoverflow.com/a/1655389/26428


reply via email to

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