help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] populating an array with piped output in a loop


From: Greg Wooledge
Subject: Re: [Help-bash] populating an array with piped output in a loop
Date: Wed, 30 Nov 2011 08:30:43 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Nov 29, 2011 at 07:28:06PM -0600, Dallas Clement wrote:
> Thanks guys.  That worked like a champ!   How does this process
> substitution work?  I presume it writes the output of the pipe
> commands to a fifo and this syntax causes the read loop to read from
> the fifo.

The implementation varies across platforms.  On HP-UX it creates a
FIFO in /var/tmp.  On Linux and OpenBSD it uses /dev/fd/NN where NN
is some integer.

The command inside the <(...) or >(...) is run in the background, and
the FIFO or /dev/fd/* is connected to it.

There are some examples on http://mywiki.wooledge.org/ProcessSubstitution



reply via email to

[Prev in Thread] Current Thread [Next in Thread]