Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.hpl.hp.com (Guenter Steinbach) Newsgroups: comp.unix.misc Subject: Re: Awk Message-ID: <78670001@hpl-opus.hpl.hp.com> Date: 12 Mar 91 05:30:26 GMT References: <1991Mar7.115420.21315@daimi.aau.dk> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 20 In comp.unix.misc, ezra@daimi.aau.dk (Thomas Ravnholt) writes: > I have a little question about awk (nawk). > If I want to run a unix-command in an awk-script, > how do I get the output into a variable. In nawk, I do "unixcommand" | getline x or even "unixcommand" arguments_from_awk | getline x to stuff the output of unixcommand into variable x. Good luck. Guenter Steinbach gunter_steinbach@hplabs.hp.com