[prog] echoing something to STDERR
Jenn Vesperman
jenn at anthill.echidna.id.au
Thu Nov 13 00:57:03 EST 2003
On Wed, 2003-11-12 at 07:20, Hamster wrote:
> On Tue, 11 Nov 2003 21:14:39 +0100
> Hamster <hamster at hamsternet.org> wrote:
>
>
> > [ -f foo.txt ] || echo "foo.txt doesnt exist"
> >
> > The problem with this is that echo plonks stuff on STDOUT, I want it to go
> > to STDERR.
> >
> > How do I do that?
You can also try stuff like cat "foo.txt doesn't exist" > stderr.
There's several ways. I like that one.
Jenn V,
--
"Do you ever wonder if there's a whole section of geek culture
you miss out on by being a geek?" - Dancer.
My book 'Essential CVS': published by O'Reilly in June 2003.
jenn at anthill.echidna.id.au http://anthill.echidna.id.au/~jenn/
More information about the Programming
mailing list