From: hugo rivera <uair00@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] rc file name matching
Date: Wed, 16 Feb 2011 16:18:25 +0100 [thread overview]
Message-ID: <AANLkTin08U+y8bJ0Hsze37RYn6Xp-dnW1riXCoq3J9Q6@mail.gmail.com> (raw)
In-Reply-To: <509df4fc42746adef7f1ab70cbe8d509@coraid.com>
Thanks Erik.
2011/2/16 erik quanstrom <quanstro@labs.coraid.com>:
> On Wed Feb 16 09:59:31 EST 2011, uair00@gmail.com wrote:
>> Hi,
>> In rc
>> *hola*
>> matches any file that contains the word 'hola'. Is there any way to
>> match all the files that don't contain 'hola' in its name? with awk
>> and grep it's easy, but I can't figure out with rc.
>
> match=()
> for(i in *)
> ! ~ $i *hola && match = ($match $i)
>
> - erik
>
>
--
Hugo
next prev parent reply other threads:[~2011-02-16 15:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-16 14:56 hugo rivera
2011-02-16 15:08 ` erik quanstrom
2011-02-16 15:18 ` hugo rivera [this message]
2011-02-16 15:15 ` Anthony Sorace
2011-02-16 15:28 ` hugo rivera
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=AANLkTin08U+y8bJ0Hsze37RYn6Xp-dnW1riXCoq3J9Q6@mail.gmail.com \
--to=uair00@gmail.com \
--cc=9fans@9fans.net \
/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).