< BACK

Bash tips, tricks and code snippets

Output (echo) to stderr rather than stdout

See posting here and the Bash Hackers Illustrated Redirection Tutorial.

>&2 echo "error"