Same question as How can I send stdout to multiple commands? but for fish shell.
Asked
Active
Viewed 942 times
3
-
Linking: https://unix.stackexchange.com/q/272838/117549 – Jeff Schaller Jul 01 '17 at 01:03
-
You'll use the [`psub`](https://fishshell.com/docs/current/commands.html#psub) command instead of the bash `>(...)` syntax – glenn jackman Jul 01 '17 at 22:32
-
@glennjackman can you provide the fish equivalent of bash `cat file.txt | tee >(pbcopy) >(do_stuff) >(do_more_stuff) | grep errors`? – user699151 Jul 02 '17 at 04:56
-
I linked to the documentation. Is it unclear? – glenn jackman Jul 02 '17 at 11:10
-
@glennjackman From the documentation I know how to replace `<(x)` with `(x | psub)` but I have no idea how to replace `>(x)`. Anyway why don't you post you comment as an answer? – user699151 Jul 03 '17 at 13:18
-
1Sorry, I missed the intent of your comment. `>(x)` isn't implemented yet: https://github.com/fish-shell/fish-shell/issues/1786 – glenn jackman Jul 07 '17 at 12:52