Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!snail!drew From: drew@snail.CS.UIUC.EDU Newsgroups: net.unix Subject: Re: HELP!! in passing shell variables t Message-ID: <3800015@snail> Date: Mon, 3-Nov-86 14:02:00 EST Article-I.D.: snail.3800015 Posted: Mon Nov 3 14:02:00 1986 Date-Received: Wed, 5-Nov-86 05:54:34 EST References: <270@chas2.UUCP> Lines: 6 Nf-ID: #R:chas2.UUCP:270:snail:3800015:000:231 Nf-From: snail.CS.UIUC.EDU!drew Nov 3 13:02:00 1986 Parameters are passed to awk outside the awk code. Inside the awk code $2 is the second field of the record, not the second argument to your shell script. Try the following: awk '{ awk code here }' awkvar1=$1 awkvar2=$2