* [9fans] parameter passing
@ 2005-01-26 10:09 cej
2005-01-26 15:28 ` Russ Cox
0 siblings, 1 reply; 2+ messages in thread
From: cej @ 2005-01-26 10:09 UTC (permalink / raw)
To: 9fans
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] parameter passing
2005-01-26 10:09 [9fans] parameter passing cej
@ 2005-01-26 15:28 ` Russ Cox
0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2005-01-26 15:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
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 <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.
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-26 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-26 10:09 [9fans] parameter passing cej
2005-01-26 15:28 ` Russ Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).