我想两个程序的输出合并起来存入一个文件或管道,怎么办? bash下, ${ echo "line1";cat /tmp/file1;echo "end"} >/tmp/file2 注意, {}中的每一个命令后都有;不然会有问题:)