GNU bug report logs - #17687
enhancement request: contiguous lines

Previous Next

Package: grep;

Reported by: al1chevee <at> yahoo.fr

Date: Wed, 4 Jun 2014 15:38:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 17687 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#17687; Package grep. (Wed, 04 Jun 2014 15:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to al1chevee <at> yahoo.fr:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Wed, 04 Jun 2014 15:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: al1chevee <at> yahoo.fr
To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org>
Subject: enhancement request: contiguous lines
Date: Wed, 4 Jun 2014 13:36:56 +0100 (BST)
[Message part 1 (text/plain, inline)]
Dear All,

Hope this mail finds you well and that its content raises some interest if it can help the grep users community.

Given that I use very often grep on large files, I realized how useful the option '-max-line' can be. Nevertheless, I found that the following enhancement could be of interest for faster processing and hence develop the use of grep:

enhancement concept: in addition to the current --max-count=num option which takes a numerical input, one could imagine another possibility (like --max-count="contiguous") which would only retrieve contiguous matching lines since the first match.

advantages: the current --max-count option improves the speed of the search with an early stop (after n matches) but it assumes the user knows exactly the number of lines to look into. With the "contiguous" option, the search provides all contiguous searches and then stops.

remark: this enhancement does not aim to compete with a "database" approach especially for time-serie management, but still many large files can have for example timestamps and using this option would accelerate the searches in sorted files thanks to the early stop.

Again, if my enhancement request is redundant with a former one already proposed or does not fit in the grep approach, please forgive me.

Have a nice day and thanks again for the great work.

Alain
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.