« Back to Index

Bash shortcut syntax for redirecting stderr to stdout

View original Gist on GitHub

Bash shortcut syntax for redirecting stderr to stdout.sh

# |& combines both stderr and stdout

go vet |& revgrep
jshint tests/tests.js |& tee -a results.txt