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

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

--only-match


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

Hello,

I'm using GNU grep 2.5f from CVS.  I found the several options added
such as --color, --perl-regexp.  They are very cute and useful for me,
thanks.

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
http://members.home.net/ncherry/#Software
http://www.sarion.co.jp/ml/soap/
http://www.fujitv.co.jp/jp/meza/uranai/syumatsu.html
http://www.extreme.indiana.edu/cat/ris/
http://www.jaist.ac.jp/~shinoda/unp2e/

Are there any plans to introduce this (or such)?

Here is the quick and dirty patch:

Attachment: only-match.diff
Description: Binary data

Regards,
-- 
Daiki Ueno

reply via email to

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