From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] parameter passing
Date: Wed, 26 Jan 2005 10:28:54 -0500 [thread overview]
Message-ID: <ee9e417a0501260728611fc591@mail.gmail.com> (raw)
In-Reply-To: <ACCF003CBA3D09458207DB0CB86AD17D0663D6@XMAIL.asuch.cas.cz>
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.
>
>
prev parent reply other threads:[~2005-01-26 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 10:09 cej
2005-01-26 15:28 ` Russ Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee9e417a0501260728611fc591@mail.gmail.com \
--to=russcox@gmail.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).