Difference between revisions of "alternative for pipe operator (heredoc)"

From thelinuxwiki
Jump to: navigation, search
(Created page with " The equivalent of command1 | command2 is command2 < <(command1) This can be extended to three (or more) commands too. command3 < <(command2 < <(command1)) taken from [...")

Revision as of 03:50, 23 August 2017

The equivalent of

command1 | command2 is command2 < <(command1)

This can be extended to three (or more) commands too.

command3 < <(command2 < <(command1))

taken from [1]