View Single Post
  #1   (View Single Post)  
Old 28th June 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default Shell script: echo something to stderr

Is there some native "proper" way to echo to stderr (and *only* stderr) from a shell script? I know I can copy stdout to stderr, but that's not what I want.

As near as I can figure out neither echo nor printf can do this. Am I missing some utility or sh feature?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote