Flash Notes

Commands - Redirection of stdout to stderr


• How to redirect standard output to standard error ?

Solution

Use the following redirection : >&2

Example 1

$ echo "ERROR" >&2