SyntaxFix
Write A Post
Hire A Developer
Questions
Mac OS X: I tried the accepted answer and a couple of other answers and all of them resulted in writing STDOUT not STDERR on my Mac.
Here is a portable way to write to standard error using Perl:
echo WARNING! | perl -ne 'print STDERR'