From: Andrea Arcangeli <andrea@suse.de>
To: David Mansfield <lkml@dm.cobite.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [ANNOUNCE] cvsps support for parsing BK->CVS kernel tree logs
Date: Wed, 19 Mar 2003 23:40:03 +0100 [thread overview]
Message-ID: <20030319224003.GT30541@dualathlon.random> (raw)
In-Reply-To: <Pine.LNX.4.44.0303191715390.19298-200000@admin>
On Wed, Mar 19, 2003 at 05:21:12PM -0500, David Mansfield wrote:
> On Wed, 19 Mar 2003, Andrea Arcangeli wrote:
>
> > I'm downloading the new version now... ;) thanks
> >
> > > The file is actualy a substring match. If the -f argument matches as a
> >
> > so it doesn't sound a regex. Being able to specify more than 1 -f would
> > be very useful. Either that or regex would do it fine too with
> > '^net/core', so as far as I can write stuff like -f
> > '^net/core|^net/ipv4' I'm fine.
> >
> > I also think using match by default in the regex is cleaner. So I can
> > write -f 'net/core|net/ipv4' w/o bothering about the ^ because it become
> > implicit. And I can still use '.*net/core.*' if I want a substring
> > regex. I think substring search will be not common.
> >
> > But really, any kind of way you implement the 'multiple file' thing is
> > fine as far as I can specify more than 1 file ;).
> >
>
> Attached is a patch (on top of previous which is on top of 2.0b5) changes
> the -f to regex match. The regex is of course slightly slower than
> 'strstr' but I agree the advantage is worth it.
>
> It differs slightly in syntax (c library regex just works this way):
>
> cvsps -f '^net/core\|^net/ipv4'
> ^
> You must escape the | symbol to separate the regex.
>
> Try it out!
ouch I did it too ;) I used the EXP_EXTENDED so I don't need to use \|,
I'm not used to it.
Andrea
next prev parent reply other threads:[~2003-03-19 22:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 17:41 David Mansfield
2003-03-19 20:11 ` Andrea Arcangeli
2003-03-19 21:19 ` David Mansfield
2003-03-19 21:37 ` Andrea Arcangeli
2003-03-19 22:21 ` David Mansfield
2003-03-19 22:40 ` Andrea Arcangeli [this message]
2003-03-19 22:36 ` Andrea Arcangeli
2003-03-20 0:19 ` David Mansfield
2003-03-20 1:00 ` Andrea Arcangeli
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=20030319224003.GT30541@dualathlon.random \
--to=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@dm.cobite.com \
/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
all inboxes | Powered by JetHome®