Xref: utzoo comp.unix.shell:1505 comp.unix.programmer:1095 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!infonode!ingr! From: rob@b15.INGR.COM (Rob Lemley) Newsgroups: comp.unix.shell,comp.unix.programmer Subject: Re: printing from awk into the stderr Keywords: awk Message-ID: <1885@b15.INGR.COM> Date: 14 Feb 91 14:10:41 GMT References: <728@mlacus.oz> <785@rubikon.UUCP> Organization: Intergraph Huntsville Lines: 25 th: b15!rob In <785@rubikon.UUCP> toad@rubikon.UUCP (Peter Cleve) writes: >>Is it possible to "print" from awk to the stderr? > print "foo bar" | "cat 1>&2" >In nawk (comes with newer unix releases) or with gawk you can try : > print "foo bar" > /dev/stderr >This solution does not have the overhead of starting a new process for >every burst of output. Neither solution starts a new process for EVERY burst of output. The first solution starts a process for all output piped to the string "cat 1>&2", no matter how many instances of the string are piped into. The difference is ONE process. Rob --- Rob Lemley 205-730-1546 System Consultant, Intergraph Corporation rob@b15.ingr.com ...!uunet!ingr!b15!rob