System() in AWK
Jonathan I. Kamens
jik at athena.mit.edu
Fri Apr 12 00:21:43 AEST 1991
In article <1991Apr11.043525.25646 at agate.berkeley.edu>, gumbyltd at 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 at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.questions
mailing list