Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!male!texsun!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.programmer Subject: Re: Awk Message-ID: <1991Mar07.203406.27830@convex.com> Date: 7 Mar 91 20:34:06 GMT References: <1991Mar7.115420.21315@daimi.aau.dk> <31137@shamash.cdc.com> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 26 Nntp-Posting-Host: pixel.convex.com From the keyboard of mek@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@convex.com convex!tchrist