Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP!! in passing shell variables t

0 views
Skip to first unread message

dr...@snail.cs.uiuc.edu

unread,
Nov 3, 1986, 2:02:00 PM11/3/86
to

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

0 new messages