compress data through a pipe
I have a command which is going to spew a whole lot of output (>1 G). Rather than writing that all to disk and then compressing it with tar, is there a way to compress straight thru a pipe?
I'd like to be able to do something like:
command | tar -cvzf -
but of course that doesn't work because tar is looking for a file name, not a stream of data.
Any ideas?
Thanks!
iMac, Mac OS X (10.5.4)