From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 20:51:48 2016 Received: (at submit) by debbugs.gnu.org; 2 Jan 2016 01:51:48 +0000 Received: from localhost ([127.0.0.1]:34114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBMB-00088N-W2 for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:51:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33965) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFBAx-00068D-Ec for submit@debbugs.gnu.org; Fri, 01 Jan 2016 20:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aExO0-0006jH-OT for submit@debbugs.gnu.org; Fri, 01 Jan 2016 05:56:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aExO0-0006jD-LD for submit@debbugs.gnu.org; Fri, 01 Jan 2016 05:56:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aExNz-0002Kh-QD for bug-grep@gnu.org; Fri, 01 Jan 2016 05:56:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aExNz-0006j1-2s for bug-grep@gnu.org; Fri, 01 Jan 2016 05:56:43 -0500 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:35742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aExNy-0006it-Uq for bug-grep@gnu.org; Fri, 01 Jan 2016 05:56:43 -0500 Received: by mail-io0-x22f.google.com with SMTP id 77so78203513ioc.2 for ; Fri, 01 Jan 2016 02:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8JTyW2oCSuOYWEv5igjmEc0D7h0cEbWzGZA7ALeczj0=; b=ShS9K+ZdnYten368Z44hXtRzfcl4xWWT/UE6jnSPkyF9mTkg/Dyp6yljz0So9UQY9W XGC17dCVTOYunjzxIkffe5iCaGb7p4iTydpxrct00ZnxwD6aP7qswa6E4bTZxa1zO8mj fD/5arhhqIwT4X/rEj5QHZibtWGvTxQyM0crHQS96zN5TI2i4hfhtEhUZRSi0Oe2yoyb xkgRRgPRhy/m5M4Rd0wxjKVVOq0sDR52VlvDHKlbFhXVCObay7UKhIvW1cUd7mTRIX0j U88TQwtDz2RJUAd+R5UrTrld6Cej/RL26H9EuYZhVmEa8LXd54719e/1qBV+CGOin8sT U+jQ== MIME-Version: 1.0 X-Received: by 10.107.37.80 with SMTP id l77mr62467465iol.138.1451645802222; Fri, 01 Jan 2016 02:56:42 -0800 (PST) Received: by 10.107.7.96 with HTTP; Fri, 1 Jan 2016 02:56:42 -0800 (PST) In-Reply-To: References: Date: Fri, 1 Jan 2016 04:56:42 -0600 Message-ID: Subject: Similar to the google way of showing grep result From: Peng Yu To: bug-grep@gnu.org Content-Type: multipart/alternative; boundary=001a11405e3a619eba052843a0b0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11405e3a619eba052843a0b0 Content-Type: text/plain; charset=UTF-8 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? -- Regards, Peng -- Regards, Peng --001a11405e3a619eba052843a0b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Grep by default show match result by lines. But in certain cas= es it would be better to should show=C2=A0the context of the matches just l= ike in google so that users can easily check if a document is relevant or n= ot. Is there any tool like this?=C2=A0

--
Regards,
Peng



--
Regards,
Peng
--001a11405e3a619eba052843a0b0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 02 01:14:52 2016 Received: (at 22286) by debbugs.gnu.org; 2 Jan 2016 06:14:52 +0000 Received: from localhost ([127.0.0.1]:34261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFFSm-0002X2-5n for submit@debbugs.gnu.org; Sat, 02 Jan 2016 01:14:52 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:51455) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aFFSj-0002WR-JG for 22286@debbugs.gnu.org; Sat, 02 Jan 2016 01:14:50 -0500 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 95B37340554; Sat, 2 Jan 2016 06:14:42 +0000 (UTC) Date: Sat, 2 Jan 2016 01:14:41 -0500 From: Mike Frysinger To: Peng Yu Subject: Re: bug#22286: Similar to the google way of showing grep result Message-ID: <20160102061441.GO25803@vapier.lan> Mail-Followup-To: Peng Yu , 22286@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y0z9Qw3cBG4bz6tn" Content-Disposition: inline In-Reply-To: X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22286 Cc: 22286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --y0z9Qw3cBG4bz6tn Content-Type: text/plain; charset=utf-8 Content-Disposition: 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 --y0z9Qw3cBG4bz6tn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWh2rRAAoJEEFjO5/oN/WBWBQQAKLt5fA/f/Yo2VhkaFKcjokr 2NF5w2Yb3ggkdnx7HR6R/teUzptwNp62OA1yuewoaA13qx997pj4KxEE43YbMyQb rtqV64AolAZ7jOrqwD84DEQ78infr1Uc+1vFJuKCobEZGWcsojThL6bWsgWOzZE0 zVfQnYq4X7T/dxCBLOQ9qFQPIoW9XGIWf9FJv/EZqIJXOIVNy2U9OR87Hmly4qgd dgPHECZAKzPUpELJSq78kwHr/j0w38L+qgfrrIs+nRNPk7I3ps3JeNVDyFCjDW+N 0cCy8ZN4Zo8vwtHyAT1d4jaiTfpRxHYmpUjGkDs+owgugEsClSL4A9mlcwxcZHXo Jke6Q+zVxgQr/p++djyTvshT9jSlcgkXvEuEeaiKZWRqApPqkaxUV9jN66vOZMmS oQ9WjdW/t8EJfsa8Xg3D+zuFg7Pn5ojQlKzrk3QOI1v1jslVDt+LhpAn12A8SOfE BDmSufEgv4zv7NKMludC4az3VFRF2V+g0ZngNvEVQvIUWfbqqtJ5RygAEe1onKYB G2jtJ4ycPLQd5SBuGrudI5iMOUYVEwBmvOAyFLNqtEFEEq9H+Z7uFTXoYhCJFMDw 3FNGNe+vko/BvQsFzZdP0jiIeZVF/0cPQjdg3bm/YTVucxIRAM3qPJadCDzIOREw Al1971JbkaEZRnvXToBg =D1j+ -----END PGP SIGNATURE----- --y0z9Qw3cBG4bz6tn-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 00:50:58 2016 Received: (at 22286-done) by debbugs.gnu.org; 11 Apr 2016 04:50:58 +0000 Received: from localhost ([127.0.0.1]:57845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apToQ-0003VZ-3K for submit@debbugs.gnu.org; Mon, 11 Apr 2016 00:50:58 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apToO-0003VN-Js for 22286-done@debbugs.gnu.org; Mon, 11 Apr 2016 00:50:56 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3EFF1160FD3 for <22286-done@debbugs.gnu.org>; Sun, 10 Apr 2016 21:50:51 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ijgjQTBDi1Le for <22286-done@debbugs.gnu.org>; Sun, 10 Apr 2016 21:50:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C1EA161250 for <22286-done@debbugs.gnu.org>; Sun, 10 Apr 2016 21:50:50 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5ciBXhdg5lFC for <22286-done@debbugs.gnu.org>; Sun, 10 Apr 2016 21:50:50 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8116A160FD3 for <22286-done@debbugs.gnu.org>; Sun, 10 Apr 2016 21:50:50 -0700 (PDT) To: 22286-done@debbugs.gnu.org From: Paul Eggert Subject: Re: bug#22286: Similar to the google way of showing grep result Organization: UCLA Computer Science Department Message-ID: <570B2D2A.5080900@cs.ucla.edu> Date: Sun, 10 Apr 2016 21:50:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 22286-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) No further comment, so I'm closing the bug report. From unknown Sun Jun 15 08:43:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 May 2016 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator