gzrt can work as a filter, but it is not in the obvious way that UNIX command normally do: cmd1 | cmd2 | cmd3 cmd1 infile | cmd2 cmd1 infile outfile Consider adding support to do the above.