2
我想使用三通追加到多个文件,但是,我不需要它打印到我的外壳,只是文件。输出到/ dev/null的伟大工程,为命令仍然附加到文件,不打印到shell:正确的方式不打印到外壳与发球命令
echo test | tee -a file1 file2 file3 &>/dev/null
我只是想知道这是否是做了正确的方法,如tee --help
似乎没有有一个参数不打印到外壳:
-a, --append append to the given FILEs, do not overwrite
-i, --ignore-interrupts ignore interrupt signals
-p diagnose errors writing to non pipes
--output-error[=MODE] set behavior on write error. See MODE below
--help display this help and exit
--version output version information and exit
我敢肯定这是做正确的方式,我想我只是想一些确认。
只使用输出重新方向'>> filename'在该行的末尾 – Ankanna