Xref: utzoo comp.unix.programmer:1236 comp.unix.misc:1071 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!psuvax1!psuvm!cunyvm!uupsi!sunic!dkuug!daimi!ezra From: ezra@daimi.aau.dk (Thomas Ravnholt) Newsgroups: comp.unix.programmer,comp.unix.misc Subject: Awk Message-ID: <1991Mar7.115420.21315@daimi.aau.dk> Date: 7 Mar 91 11:54:20 GMT Sender: ezra@daimi.aau.dk (Thomas Ravnholt) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 22 Hello ! 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. I tried getline < system(unixcommand) system(unixcommand | getline) but it is no good of course. system returns 0 or 1 and not the output of the unixcommand. Hope you can answer this one. Thanks in advance ! ezra@daimi.aau.dk