System() in AWK

Dmitry Gokhman gumbyltd at spam.berkeley.edu
Thu Apr 11 14:35:25 AEST 1991


In a DOS implementation of AWK there is a system
function, which I've grown to rely on chiefly
to import contents of files into the final output.
For example:
   $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?
/////////////////////////////////////////////////////////////////////
- Mr. Gumby    * \oo7    Dmitry Gokhman -> gumbyltd at math.berkeley.edu
   says:        `/v/-*   University of Cauliflower
MY BRAIN HURTS  J  L     Broccoli CA 94720
/////////////////////////////////////////////////////////////////////



More information about the Comp.unix.questions mailing list