xtee (cross-tee
/expanded tee
) is a program for building
complex pipelines. It resembles the tee command, except that
instead of copying stdin to stdout, it copies a file to stdout.
You can use xtee for building things like a bidirectional HTTP filter (using netcat and sed). See the documentation for details on how to do this.
The program is 44 lines of literate Haskell. I've only tested it with the cases mentioned in the documentation.
See the README file in the download for how to contact me, as well as instructions on how to build the program. See the COPYING file for license information (GPLv3).
You can checkout a copy of the latest code with:
darcs get http://jekor.com/xtee/