GNU bug report logs - #22286
Similar to the google way of showing grep result

Previous Next

Package: grep;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Sat, 2 Jan 2016 01:52:03 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Frysinger <vapier <at> gentoo.org>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 22286 <at> debbugs.gnu.org
Subject: bug#22286: Similar to the google way of showing grep result
Date: Sat, 2 Jan 2016 01:14:41 -0500
[Message part 1 (text/plain, inline)]
On 01 Jan 2016 04:56, Peng Yu wrote:
> Grep by default show match result by lines. But in certain cases it would
> be better to should show the context of the matches just like in google so
> that users can easily check if a document is relevant or not. Is there any
> tool like this?

sounds like you want the -A/-B/-C flags ?
-mike
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 9 years and 39 days ago.

Previous Next


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