Redirecting STDERR

suggest change

2 is STDERR.

$ echo_to_stderr 2>/dev/null # echos nothing

Definitions:

echo_to_stderr is a command that writes "stderr" to STDERR

echo_to_stderr () {
    echo stderr >&2
}

$ echo_to_stderr
stderr

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents