bug-grep
[Top][All Lists]
Advanced

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

[bug #14630] feature request: grep -p[separator]


From: anonymous
Subject: [bug #14630] feature request: grep -p[separator]
Date: Sat, 24 Sep 2005 12:03:48 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050609 Epiphany/1.6.0

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14630>

                 Summary: feature request: grep -p[separator]
                 Project: grep
            Submitted by: None
            Submitted on: Sat 09/24/05 at 12:03
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

I was shocked to find that GNU grep doesn't support the -p option available
on AIX, Solaris, HP-UX, and possibly other platforms.  With this option grep
displays the paragraph containing each matching line.  Paragraphs are
delimited by a separator, which follows the same formatting as a search
pattern.  The default separator is a blank line.

While using grep on other platforms, I've found this option to be quite
handy.  On my GNU/Linux laptop, I immediately reached for it like this:

# ifconfig | grep -p eth0

But it wasn't there.  Could this be added?






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14630>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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