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
>