Process Substitution
Up
Next
Previous
Process Substitution
Process substitution\fP is supported on systems that support named
pipes (FIFOs\fP) or the /dev/fd\fP method of naming open files.
It takes the form of
<(\fPlist\^\fP)\fP
or
>(\fPlist\^\fP)\fP.
The process list\fP is run with its input or output connected to a
FIFO\fP or some file in /dev/fd\fP. The name of this file is
passed as an argument to the current command as the result of the
expansion. If the >(\fPlist\^\fP)\fP form is used, writing to
the file will provide input for list\fP. If the
<(\fPlist\^\fP)\fP form is used, the file passed as an
argument should be read to obtain the output of list\fP.
When available, process substitution is performed
simultaneously with parameter and variable expansion,
command substitution,
and arithmetic expansion.
Up
Next
Previous