Redirect output in bash
Jump to navigation
Jump to search
There are two ways to do this, depending on your Bash version. The classic and portable (Bash pre-4) way is: cmd >> outfile 2>&1 A nonportable way, starting with Bash 4 is cmd &>> outfile (analog to &> outfile)