This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:pipe [2019/06/05 11:43] – [Pipe to a file] tmade | linux:pipe [2020/09/16 11:43] – [Pipe to a file] tmade | ||
---|---|---|---|
Line 18: | Line 18: | ||
ls /opt/ /otherfile > file 2>& | ls /opt/ /otherfile > file 2>& | ||
+ | ls /opt /otherfile 2> / | ||
programm &> file # | programm &> file # | ||
echo "This is a test" 1> / | echo "This is a test" 1> / | ||
Line 32: | Line 33: | ||
command1 && command2 | command1 && command2 | ||
command1 || command2 | command1 || command2 | ||
+ | command1 && command2 || command3 | ||
| | ||
==== Error-handling ==== | ==== Error-handling ==== |