How to combine stdin into a pipe?

I want to send pipe and stdin output to a channel in bash.

Ie:

gen_input | cat - | parse_input_and_stdin 

will send the output of gen_input to parse_input_and_stdin , and then leave stdin open for more interactive input.

+6
source share
2 answers
 cat <(gen_input) - | parse_input_and_stdin 
+9
source

To close.

 { gen_input ; cat ; } | parse_input_and_stdin 
+14
source

Source: https://habr.com/ru/post/911913/


All Articles