Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!agate!spam.berkeley.edu!gumbyltd From: gumbyltd@spam.berkeley.edu (Dmitry Gokhman) Newsgroups: comp.unix.questions Subject: System() in AWK Message-ID: <1991Apr11.043525.25646@agate.berkeley.edu> Date: 11 Apr 91 04:35:25 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: U.C. Berkeley Math. Department. Lines: 13 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@math.berkeley.edu says: `/v/-* University of Cauliflower MY BRAIN HURTS J L Broccoli CA 94720 /////////////////////////////////////////////////////////////////////