Xref: utzoo comp.unix.shell:1447 comp.unix.programmer:1046 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!slxsys!ibmpcug!demon!cliff From: cliff@demon.co.uk (Cliff Stanford) Newsgroups: comp.unix.shell,comp.unix.programmer Subject: Re: printing from awk into the stderr Keywords: awk Message-ID: <1991Feb10.185619.17259@demon.co.uk> Date: 10 Feb 91 18:56:19 GMT References: <728@mlacus.oz> <785@rubikon.UUCP> <1991Feb09.065958.22874@convex.com> Organization: Demon Systems Limited Lines: 17 In article <1991Feb09.065958.22874@convex.com> tchrist@convex.COM (Tom Christiansen) writes: >From the keyboard of toad@rubikon.UUCP (Peter Cleve): >: print "foo bar" > /dev/stderr > >You can only do that if you the system itself supports /dev/stderr, >not awk. And the syntax really should be: > > print "foo bar" > "/dev/stderr" gawk (gnu awk) fakes it so that print string > "/dev/stderr" works even under MsDos. Cliff. -- Cliff Stanford Email: cliff@demon.co.uk (Work) Demon Systems Limited cms@demon.co.uk (Home) 42 Hendon Lane Phone: 081-349 0063 (Office) London N3 1TT England 0860 375870 (Mobile)