Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dir >> out 2>> error
- dir >> consolidate 2>&1
- (command > >(tee out.txt) 2> >(tee error.txt >&2)) &> consol.txt
- $ ls
- f
- $ ls g*
- ls: cannot access g*: No such file or directory
- $ (ls g f > >(tee out.txt) 2> >(tee error.txt >&2)) &> consol.txt
- $ cat out.txt
- f
- $ cat error.txt
- ls: cannot access g: No such file or directory
- $ cat consol.txt
- f
- ls: cannot access g: No such file or directory
- { { dir | tee -a out; } 2>&1 >&3 | tee -a error; } >> consolidate 3>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement