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 [...")
 
m (Nighthawk moved page alternative for pipe operator to alternative for pipe operator (heredoc) without leaving a redirect)
 
(2 intermediate revisions by one user not shown)
Line 8: Line 8:
 
  command3 < <(command2 < <(command1))
 
  command3 < <(command2 < <(command1))
  
taken from [https://askubuntu.com/questions/564380/alternative-for-pipe-operator]
+
taken from [https://askubuntu.com/questions/564380/alternative-for-pipe-operator https://askubuntu.com/questions/564380/alternative-for-pipe-operator]
 +
 
 +
[https://phoenixnap.com/kb/bash-heredoc Bash HereDoc Tutorial With Examples]
  
 
[[category:bash]]
 
[[category:bash]]

Latest revision as of 01:01, 2 November 2022

The equivalent of

command1 | command2 is command2 < <(command1)

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

command3 < <(command2 < <(command1))

taken from https://askubuntu.com/questions/564380/alternative-for-pipe-operator

Bash HereDoc Tutorial With Examples