Import variables in to awk.

Gunter Steinbach steinbac at hpl-opus.HP.COM
Thu Nov 16 04:22:03 AEST 1989


> / hpl-opus:comp.unix.questions / warner at 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 at hplabs.hp.com



More information about the Comp.unix.questions mailing list