Import variables in to awk.

Byron Warner warner at unc.cs.unc.edu
Wed Nov 15 08:15:12 AEST 1989


My questions is how do you import csh variables into an awk script.
for example if I have a file called foo, which contains:
{
	print import,$0
}

and I issue the command 
awk -F: -f foo /etc/passwd import='hello
why do I get just a list of logins?
Thanx in Advance



More information about the Comp.unix.questions mailing list