The power of TCP over tee
Allow to create a replacement of tee
, capable of receiving new clients
on the fly. Does not limit the process of stdout to be solely to be the
only stream to apply further processing.
One should be able to run further processing in a long running process on the fly:
$ alias teecp='go run github.com/jeffque/teecp@latest'
$ ./some-long-process | teecp | grep "dodongo"
For each other terminal (assumes that alias teecp
has been applied):
$ teecp --server=false | grep "bomb" | teecp --port 6668
$ teecp --server=false --port 6668 | wc -l
$ teecp --server=false | grep "[Ll]ink"
- Command line
- User selected port
(for now is 6667) - Alternate between client and server with something more beautiful