Path: utzoo!utgpu!watmath!att!occrsh!uokmax!apple!motcsd!hpda!hpcuhb!hp-ses!hpcc01!hpccc!hpl-opus!steinbac From: steinbac@hpl-opus.HP.COM (Gunter Steinbach) Newsgroups: comp.unix.questions Subject: Re: Import variables in to awk. Message-ID: <63720016@hpl-opus.HP.COM> Date: 15 Nov 89 17:22:03 GMT References: <10531@thorin.cs.unc.edu> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 13 > / hpl-opus:comp.unix.questions / warner@unc.cs.unc.edu (Byron Warner) > / 1:15 pm Nov 14, 1989 / > My questions is how do you import csh variables into an awk script. > [ deleted ] > awk -F: -f foo /etc/passwd import='hello The variable assignment has to come before the input file name. Guenter Steinbach | hplabs!gunter_steinbach | gunter_steinbach@hplabs.hp.com