printing from awk into the stderr
Peter Cleve
toad at rubikon.UUCP
Sat Feb 9 03:33:20 AEST 1991
eitan at 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 at rubikon
3014 Laatzen 3 (Rethen) | ...!tmpmbx!mcshh!veeble!rubikon!toad
Hildesheimer Str. 316 | Tel. 05102/1854 (Voice)
More information about the Comp.unix.programmer
mailing list