bug-grep
[Top][All Lists]
Advanced

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

[bug #19337] Whish: Include Option to view first line of file/stream


From: anonymous
Subject: [bug #19337] Whish: Include Option to view first line of file/stream
Date: Sun, 18 Mar 2007 12:05:56 +0000
User-agent: Opera/9.10 (X11; Linux i686; U; en)

URL:
  <http://savannah.gnu.org/bugs/?19337>

                 Summary: Whish: Include Option to view first line of
file/stream
                 Project: grep
            Submitted by: None
            Submitted on: Sunday 03/18/2007 at 12:05 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello,

Would it be possible to add a command line flag, to set grep, that it would
show the first (or the n-first) line(s) of a file (or stream) with matching
items?

eg, if you have a command wich has a table-like output, you could easily
include the header, so you know which column means what...

eg: 
$ ps aux | grep --head foo

(so, --head would mean to include first line, and maybe --head5 the first
5...)

Imho this wouldnt brak any backward compatibility - or?

tia Daniel Weigl - DanielWeigl-at-gmx.at




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19337>

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





reply via email to

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