In bash, you can pipe the same output to two commands using {}
, i.e. in the following:
cmd0 | { cmd1 ; cmd2 ;} | cmd3
cmd1 and cmd2 get the output of cmd0 in their stdin, and cmd3 gets the output of cmd2 appended to output of cmd2 in its stdin.
What's the name of this {}
feature and is there an equivalent in fish?