From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 26 Jan 2005 10:28:54 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] parameter passing In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: Topicbox-Message-UUID: 36302ee4-eace-11e9-9e20-41e7f4b1d025 i have no idea what you're trying to do, but i don't see how what you wrote is different from awk '$3=='^$1^' {print $2}' clade or awk -v 's='^$1 '$3==s {print $2}' clade the latter works even when $1 is a string instead of a number. russ On Wed, 26 Jan 2005 11:09:49 +0100, cej@gli.cas.cz wrote: > hello, > is there a better way to pass > commandline argument(s) than this is: > #!/bin/rc > echo awk '''$3=='$1'{print $2}''' clade | rc > #-eof- > > thanks, > ++pac. > >