[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29827] 2.6.3 FEATURE REQUEST: Extend --only-matching to accept sub
From: |
Jari Aalto |
Subject: |
[bug #29827] 2.6.3 FEATURE REQUEST: Extend --only-matching to accept submatch |
Date: |
Sat, 08 May 2010 12:42:04 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.2.15 Version/10.10 |
URL:
<http://savannah.gnu.org/bugs/?29827>
Summary: 2.6.3 FEATURE REQUEST: Extend --only-matching to
accept submatch
Project: grep
Submitted by: jaalto
Submitted on: Sat 08 May 2010 03:42:03 PM EEST
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Manual page reads:
-o, --only-matching
Print only the matched (non-empty) parts of a matching
line,
with each such part on a separate output line.
FEATURE REQUEST
Extend the option to accept additional numeric argument to control the
submatch returned. (By default 0). This woudl make it possible to run:
echo "Program version 1.12" | grep -E -o 1 "Program.*([0-9.]+)"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29827>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #29827] 2.6.3 FEATURE REQUEST: Extend --only-matching to accept submatch,
Jari Aalto <=