[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of |&
From: |
goncholden |
Subject: |
Re: Use of |& |
Date: |
Sat, 18 Feb 2023 07:43:27 +0000 |
------- Original Message -------
On Tuesday, February 14th, 2023 at 4:19 AM, Dennis Williamson
<dennistwilliamson@gmail.com> wrote:
> On Mon, Feb 13, 2023 at 9:22 AM goncholden via help-bash@gnu.org wrote:
>
> > Have been using awk in a bash script.
> >
> > Have seen the use of "|&" rather than the usual "|". What is the reason
> > for using
> >
> > "|&" exactly ?
> >
> > command |& getline info
> >
> > command | getline info
>
>
>
>
> As Greg has said, in Bash |& is a pipe that passes both stdout and stderr.
>
> However, the examples you show are AWK syntax (specifically gawk, perhaps)
> for the creation of a coprocess as Alex has said. In this case it has
> nothing to do with Bash.
Ok. Thusly |& is a specific gawk command rather than a pipe invocation in bash.