[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is it possible to combine here-doc and pipeline?
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Is it possible to combine here-doc and pipeline? |
Date: |
Thu, 27 Jul 2017 21:21:34 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
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).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/