4 ms·
I know tee but have no idea what pee would do considering this description. From your description I guess something like « pee a b » would be the same as « a |
by thiht 5y ago
I know tee but have no idea what pee would do considering this description.
From your description I guess something like « pee a b » would be the same as « a | b »? If so that’s cool, but the one line descriptions definitely need a rework.
- nerdponx 5y agoI believe it's more like `a | pee b x y z | c`. This would run `b x y x` as well as `c` using the output from `a`. I think Zsh supports this natively with its "multios" option, `a > >(b c y z) > >(c)`. But then you have to write the rest of your pipe inside the ().
- somat 5y agoI can only guess from that description is that it is the cat command.
- oftenwrong 5y agoIt loosely follows the same metaphor as the T-shaped pipe connector that 'tee' is named for. $ seq 3 | tee somefile 1 2 3 ╔═somefile seq═tee═╣ ╚═stdout $ seq 10 | pee 'head -n 3' 'tail -n 3' 1 2 3 8 9 10 ╔═head═╗ seq═pee═╣ ╠═stdout ╚═tail═╝