tee reads from standard input and writes to standard output and a file.
some_command |& tee log
Is it possible for tee to write to a compressed file?
some_command |& tee -some_option log.bz2
If te can't do this, is there another team?
I can redirect the output to a compressed file with
some_command |& bzip2 > log.bz2
But with this command, there is no output to standard output.
source
share