Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: System() in AWK Message-ID: <1991Apr11.142143.9760@athena.mit.edu> Date: 11 Apr 91 14:21:43 GMT References: <1991Apr11.043525.25646@agate.berkeley.edu> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 15 In article <1991Apr11.043525.25646@agate.berkeley.edu>, gumbyltd@spam.berkeley.edu (Dmitry Gokhman) writes: |> $1 == "#include" {system(type $2)} |> Now I'd like to something like this in UNIX |> (with 'cat' instead of 'type'), but AWK |> doesn't seem to recognize system(). Any clues? Get a newer version of Unix awk that understands system(). For example, the GNU version of awk, available for anonymous ftp on prep.ai.mit.edu in /pub/gnu or at another friendly neighborhood GNU archive site near you. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710