【发布时间】:2017-05-26 01:50:41
【问题描述】:
我同时在我的 Linux shell 中运行多个命令,例如
echo "Line of text 1" && echo "Line of text 2" && complexthing | xargs printf "complexspecifier"
我想将所有输出重定向到file1。我知道我可以在每个单独的命令之后添加>file1,但这看起来很笨重。我该怎么做?
【问题讨论】:
标签: bash shell command-line syntax output