Re: [Help-bash] Is it possible to combine here-doc and pipeline?
From:
Greg Wooledge
Subject:
Re: [Help-bash] Is it possible to combine here-doc and pipeline?
Date:
Fri, 28 Jul 2017 07:56:26 -0400
User-agent:
NeoMutt/20170113 (1.7.2)
On Thu, Jul 27, 2017 at 09:21:34PM -0400, Chet Ramey wrote:
> On 7/27/17 7:38 PM, Andy Chu wrote:
> > cat <<EOF |
> > what a wonderful world
> > EOF
> > sed 's/a/b/g'
> >
> > (Although for some reason this only works in batch mode rather than
> > interactively)
>
> It works fine interactively, at least as far back as bash-4.0 (that's
> when I quit testing).
Works in 2.04, which is the oldest I have on hand.