3 ms·
In zsh, =(cmd) will create a temporary file, <(cmd) will create a named pipe, and $(cmd) creates a subshell. There are also fancy options that use MULTIOS. For
by dbbolton 12y ago
In zsh, =(cmd) will create a temporary file, <(cmd) will create a named pipe, and $(cmd) creates a subshell. There are also fancy options that use MULTIOS. For example:
paste <(cut -f1 file1) <(cut -f3 file2) | tee >(process1) >(process2) >/dev/null
can be re-written as:
paste <(cut -f1 file1) <(cut -f3 file2) > >(process1) > >(process2)
http://zsh.sourceforge.net/Doc/Release/Expansion.html#Process-Substitution http://zsh.sourceforge.net/Doc/Release/Expansion.html#Proces...
http://zsh.sourceforge.net/Doc/Release/Redirection.html#Redirection http://zsh.sourceforge.net/Doc/Release/Redirection.html#Redi...