grep - Bugs: bug #24290, option to output all lines
You are not allowed to post comments on this tracker with your current authentication level.
bug #24290: option to output all lines
Submitter: | Max Waterman <davidmaxwaterman> | ||
Submitted: | Thu 18 Sep 2008 07:12:51 AM UTC | ||
Category: | None | Severity: | 1 - Wish |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
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.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-12-04 | bonzini | Severity | 3 - Normal | 1 - Wish | |
2008-09-18 | davidmaxwaterman | Carbon-Copy | - | Added davidmaxwaterman |
Powered by Savane 3.13-f8d8.
Corresponding source code
Hi,
Grep has nice options to match regular expressions/patterns and highlight them so that the user can easily see them.
I find a need to have grep output all lines, and just hightlight the matches as they go by. This is as oppose to it only outputting lines that contain a match.
This might seem counter intuitive, but I don't think grep by definition is for filtering lines; instead, it is for finding patterns in files/streams. So, simply highlighting the matches is a valid thing for grep to do.
Note that grep already has options to output lines containing matches and lines not containing matches, and even an option to output lines surrounding a line containing a match. That latter one can be used as a workaround, if a large enough number is given for --context.
Please consider adding such an option.