我想执行一个命令,让该命令的输出动态地获取gzip,并且还回显/发出该命令的输出.
即,像:
echo "hey hey, we're the monkees" | gzip --stdout > my_log.gz
除了行执行之外,我想在标准输出上看到这个:
hey hey, we're the monkees
linux bash shell tee
bash ×1
linux ×1
shell ×1
tee ×1