grep - Bugs: bug #19337, Whish: Include Option to view...
You are not allowed to post comments on this tracker with your current authentication level.
bug #19337: Whish: Include Option to view first line of file/stream
Submitter: | None | ||
Submitted: | Sun 18 Mar 2007 12:05:55 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Fri 04 Dec 2009 07:25:14 PM UTC, comment #5: |
Paolo Bonzini <bonzini> |
Fri 14 Mar 2008 06:53:07 AM UTC, comment #4:
|
Bob Proulx <rwp> |
Thu 13 Mar 2008 11:47:44 PM UTC, comment #3: I've often wanted this functionality and would welcome a 'head' option to grep. I feel it is similar to the A and B options in that it provides additional context. '--head=2' would include the first two lines of STDIN. '--head' would assume a default of 1 line.
|
Allen Halsey <ahalsey> |
Thu 19 Apr 2007 06:37:02 PM UTC, comment #2: Hi,
|
Daniel Weigl <danwei> |
Sun 18 Mar 2007 02:03:52 PM UTC, comment #1: The utitility 'head' provides the desired functionality. For example, The desired output from
|
Tony Abou-Assaleh <taa> |
Sun 18 Mar 2007 12:05:55 PM UTC, original submission:
Hello,
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-12-04 | bonzini | Open/Closed | Open | Closed |
Powered by Savane 3.13-bb6a.
Corresponding source code
The right solution is sed '1b;/foo/b;d' or something like that