Xref: utzoo comp.unix.shell:1437 comp.unix.programmer:1030 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!horga!veeble!rubikon!toad From: toad@rubikon.UUCP (Peter Cleve) Newsgroups: comp.unix.shell,comp.unix.programmer Subject: Re: printing from awk into the stderr Keywords: awk Message-ID: <785@rubikon.UUCP> Date: 8 Feb 91 16:33:20 GMT References: <728@mlacus.oz> Organization: rubikon Rehten, BRD Lines: 21 eitan@mlacus.oz (Eitan Froumine) writes: >Is it possible to "print" from awk to the stderr? The standart (and portable) solution is : 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. By -- Peter Cleve | SUB : toad@rubikon 3014 Laatzen 3 (Rethen) | ...!tmpmbx!mcshh!veeble!rubikon!toad Hildesheimer Str. 316 | Tel. 05102/1854 (Voice)