How do I concatenate output of two commands? For example, if I do
$ echo "foo" && echo "bar" > tmp
Then foo will be printed in stdout and bar in tmp. I guess I could do
$ echo "foo" > tmp && echo "bar" >> tmp
But what if I want to print to lp?
$ echo "foo" && echo "bar" | lp
will print only bar.
Bookmarks