bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --only-match


From: Daiki Ueno
Subject: Re: --only-match
Date: 09 May 2001 03:09:00 +0900
User-agent: T-gnus/6.15.3 (based on Oort Gnus v0.03)

>>>>> In <address@hidden> 
>>>>>   "Alain Magloire" <address@hidden> wrote:

> > Now, I want the option --only-match to produce the following result:
> > 
> > $ grep --only-match -P \
> >    'http:(//[-\w_.]+:\d*)address@hidden&*+|\\/.,address@hidden&*+|\\/]' \
> >   ~/.lynx/bookmark.html | tail -5

> Meanwhile, you could help your cause(bumping the queue) by providing
> doc/grep.{1,texi} and ChangeLog entries for the patch.

> My english writing skills are flaky but "--only-match" does not sound right.
> Sorry I do not have any better alternative.

Okay, how about "--matching-string"?

I've attached the patch in which the option was renamed.

2001-05-08   Daiki Ueno  <address@hidden>

        * grep.c: New option --matching-string.
        (matching_string_option): New static variable.
        (MATCHING_STRING_OPTION): New constant.
        (long_options): Add --matching-string.
        (usage): Description of new options.
        (prline): Now when matching_string_option is set prline() does not
        print the rest of the matching line.

        * grep.1, grep.texi: Document the new option.

Attachment: matching-string.diff
Description: Binary data

Regards,
-- 
Daiki Ueno

reply via email to

[Prev in Thread] Current Thread [Next in Thread]