如何将标准输出重定向到多个日志文件?
以下不起作用:
some_command 1> output_log_1 output_log_2 2>&1
解决方法:
见男士T恤:
NAME: tee – read from standard input and write to standard output and files
SYNOPSIS: tee [OPTION]… [FILE]…
因此:
echo test | tee file1 file2 file3
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!