Awk

Tom Christiansen tchrist at convex.COM
Fri Mar 8 06:34:06 AEST 1991


>From the keyboard of mek at michael.udev.cdc.com (Mark Kennedy):

:Crude, but effective, temporary files are your friend.  Here's a
:simple example that does what you ask.
:
:#! /bin/sh
:
:awk '
:BEGIN {
:system("date > /tmp/foo")
:getline X < "/tmp/foo"
:print X
:}'
:

awk: syntax error near line 4
awk: illegal statement near line 4

can't do that stuff with vintage awk.

--tom
--
	I get so tired of utilities with arbitrary, undocumented,
	compiled-in limits.  Don't you?

Tom Christiansen		tchrist at convex.com	convex!tchrist



More information about the Comp.unix.programmer mailing list