redirection

Bash append combined output

Bash-specific form appending both standard output and error to one file.

Formal Syntax & Structure

bash syntaxbash
&>>file

Return Value

redirection effect

Bash-specific form appending both standard output and error to one file.

Working Example

Example Snippetbash
report() { printf '%s\n' data; printf '%s\n' note >&2; }report &> combined.logreport &>> combined.logcat combined.log
Bash Reference