The opposite of tee
, merges multiple command io stream and controls like 1 command.
-> command 1 stream ─┐
-> command 2 stream ─┤
└─ stdout/stderr/SIGINT to kill both
% go get -u github.com/otiai10/too
# then just hit `too`
When you need to start 2 file watchers, and kill them at the same time, like this
% nohup rails server &
% nohup npm start-webpack &
# then
% pkill rails
% pkill start-webpack
# <- annoying :(
% too
> rails server # return key
> npm start-webpack # return key
> # return key again
[0] ... # Rails log here
[1] ... # npm log here
# To kill both, just Ctrl+C once!
by interactive mode
by one-line mode
in both ways, you can kill all the commands by just 1 Ctrl+C