$ do_something.sh &> out.log
— by Janos
on June 5, 2012, 11:34 a.m.
Note: this is not always the same as:
do_something.sh >out.log 2>out.log
Using &> will ensure that the order of lines coming from stdout and stderr is preserved.
This works in /bin/bash and may not work in /bin/sh or other stripped down variants of bash.