[Help-bash] Assigning to a variable using here document?
From:
Peng Yu
Subject:
[Help-bash] Assigning to a variable using here document?
Date:
Thu, 27 Sep 2012 10:14:14 -0500
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