printing from awk into the stderr
Rob Lemley
rob at b15.INGR.COM
Fri Feb 15 01:10:41 AEST 1991
In <785 at rubikon.UUCP> toad at 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 at b15.ingr.com ...!uunet!ingr!b15!rob
More information about the Comp.unix.programmer
mailing list