I'm running multiple commands in my Linux shell at the same time, e.g.
echo "Line of text 1" && echo "Line of text 2" && complexthing | xargs printf "complexspecifier"
I want to redirect all output to file1
. I know I can add >file1
after each individual command but this seems bulky. How can I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…