资 源 简 介
pipe output from a single command into multiple commands inputs, implemented in python.
See also: process substitution via >()
http://tldp.org/LDP/abs/html/process-sub.html
See also: multipipe
http://multipipe.sourceforge.net/
So why multipype? Python is cross-platform compatible. I had trouble compiling multipipe on solaris. And it"s really tough to use process substitution when the subcommand itself requires redirection.
Example usage:
tar cf - somedir | multipype "md5sum - > somedir.tar.md5" "gzip > somedir.tar.gz"