GNU bug report logs - #27902
Using -o with -v

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Severity: wishlist; Reported by: Arseny Sher <sher-ars@HIDDEN>; dated Tue, 1 Aug 2017 09:20:02 UTC; Maintainer for grep is bug-grep@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 27902 <at> debbugs.gnu.org:


Received: (at 27902) by debbugs.gnu.org; 2 Aug 2017 12:49:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 02 08:49:15 2017
Received: from localhost ([127.0.0.1]:37818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dct5P-0002pr-KU
	for submit <at> debbugs.gnu.org; Wed, 02 Aug 2017 08:49:15 -0400
Received: from mail-ua0-f170.google.com ([209.85.217.170]:37105)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <izaberina@HIDDEN>) id 1dct5N-0002pd-VB
 for 27902 <at> debbugs.gnu.org; Wed, 02 Aug 2017 08:49:14 -0400
Received: by mail-ua0-f170.google.com with SMTP id f9so20028297uaf.4
 for <27902 <at> debbugs.gnu.org>; Wed, 02 Aug 2017 05:49:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=npcq9Ti4BduEwRKqFhYORow5F0GvjeB1+4bgYfnqATg=;
 b=jOYi0oUB5f1zGMnYp2/F2x+wBwN2ZxVUKnEDly7tiiSaBGJRU4JC6kZQRwcNUFsfkC
 eFwAmFqTg+8LLIm3NhcMiOqFqyhQSTnDNl4qItbP2P3NYJwOkshqVNC6vgvoBeiDKx1/
 hJggYbKMDhxiuO1Lf/3dVOjG9+NNfQ/Bl+48HuwOepl+uN/RKTAcgR3bVZyF6fc9zceh
 umG0x0HQ7amP+mtSiP6P/8K0+2s33rym+QsWaBZMlnQdKfakRTTMGAiLz2TUxbd/tuqH
 u/BLZxzGo8W4577qPSx9VvZmAb7WPO/HCdmWVjXGjnR/IhHQI24ah//FWz2TtJjp+xIV
 pRAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=npcq9Ti4BduEwRKqFhYORow5F0GvjeB1+4bgYfnqATg=;
 b=OFGpCOdzXHKhb/pPYnIb73rk1SwQ1uB4lWDje4qTXy+x9X4elrYiegBpepMv/PZ0wf
 EDrlVkgvh+PjHPvNxlVzfwhfdKk73OPI5718K1b/sk79SptLBB2W/3I/s2HM3WQJxw4Z
 yuXxgGaULcW7hgpLRwNLKzUShOm5yrg7z8HBShLfk/fFnnt7361VO+wPQQfzw7H8xtKH
 wpuH5+NI1iYB7yxKDXtjlPuQa0maG56V3mxn/5jZgbB7vizgF9epQ/TQBT/qMnHy3pGy
 uh90riuKW6blzqJ5nYcsD4MliwsFWjttAuzM3ahK8zeJwnK2wrTrPN/dmpmhSqIvLDQn
 R7eg==
X-Gm-Message-State: AIVw111ucHNNFJIrXqYKkzUraHrzYi5Ufkevh72Q3vf3ifqinHDyq/oC
 8WBzNeIbFU6u8Xt/1+WQ2F77tG6g6w==
X-Received: by 10.176.65.193 with SMTP id 59mr12534740uap.83.1501678148358;
 Wed, 02 Aug 2017 05:49:08 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.210.71 with HTTP; Wed, 2 Aug 2017 05:49:07 -0700 (PDT)
In-Reply-To: <87a83j3asv.fsf@ars-thinkpad>
References: <87a83j3asv.fsf@ars-thinkpad>
From: isabella parakiss <izaberina@HIDDEN>
Date: Wed, 2 Aug 2017 14:49:07 +0200
Message-ID: <CAAZkfoKWeRgA95FtVyBUiLtFmyLE_OiuWYR4sepCEuNnPxv-mA@HIDDEN>
Subject: Re: bug#27902: Using -o with -v
To: Arseny Sher <sher-ars@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 27902
Cc: 27902 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On 8/1/17, Arseny Sher <sher-ars@HIDDEN> wrote:
> Hi,
>
> Is it possible to output symbols which constitute non-matched
> parts of text? For example, I expect
>
> printf "banana\napple" | grep --invert-match --only-matching 'ban'
>
> to produce
>
> ana
> apple
>
> or
>
> apple
>
> , but it doesn't produce anything.
>
> I need -o because I grep multiline pattern with -z.
>
> --
> Arseny Sher
>
>
>
>

sed 's/ban//g'




Information forwarded to bug-grep@HIDDEN:
bug#27902; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Aug 2017 09:19:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 05:19:37 2017
Received: from localhost ([127.0.0.1]:36104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dcTKy-0006EA-Qr
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2017 05:19:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42162)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sher-ars@HIDDEN>) id 1dcTKx-0006Dr-Pd
 for submit <at> debbugs.gnu.org; Tue, 01 Aug 2017 05:19:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sher-ars@HIDDEN>) id 1dcTKr-00012z-TP
 for submit <at> debbugs.gnu.org; Tue, 01 Aug 2017 05:19:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58087)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <sher-ars@HIDDEN>) id 1dcTKr-00012l-QH
 for submit <at> debbugs.gnu.org; Tue, 01 Aug 2017 05:19:29 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33098)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sher-ars@HIDDEN>) id 1dcTKn-0000ha-OH
 for bug-grep@HIDDEN; Tue, 01 Aug 2017 05:19:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sher-ars@HIDDEN>) id 1dcTKj-0000xj-MK
 for bug-grep@HIDDEN; Tue, 01 Aug 2017 05:19:25 -0400
Received: from forward101j.mail.yandex.net ([5.45.198.241]:42882)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <sher-ars@HIDDEN>) id 1dcTKj-0000vO-D6
 for bug-grep@HIDDEN; Tue, 01 Aug 2017 05:19:21 -0400
Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net
 [IPv6:2a02:6b8:0:801::ac])
 by forward101j.mail.yandex.net (Yandex) with ESMTP id B652C1243AA5
 for <bug-grep@HIDDEN>; Tue,  1 Aug 2017 12:19:14 +0300 (MSK)
Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1])
 by smtp2j.mail.yandex.net (Yandex) with ESMTP id A0AE03EC1062
 for <bug-grep@HIDDEN>; Tue,  1 Aug 2017 12:19:14 +0300 (MSK)
Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id
 r5ifK8jHVz-JDbGV7DT; Tue, 01 Aug 2017 12:19:13 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1501579153; bh=hXBhWy2IVc8Ea5hTXBKSkrE7MJ1V+1PbdgwXS4aDRFo=;
 h=From:To:Subject:Date:Message-ID;
 b=riLghgCGVFHK6ocbagU+IgOc3qQQMQxBr9bH8oadXXXhYUx+5SAo5kXsZAVZCsCNJ
 Lf2ueVawXa+RbHg2X9kA449tck8mUNMqoSuzQQY5W/NARvgAAC+nD671vz9KKkqfg9
 Hkdsw/naDeTDuN4hHJpba9BCWJq8WWdkZbEPAmsI=
Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0
From: Arseny Sher <sher-ars@HIDDEN>
To: bug-grep@HIDDEN
Subject: Using -o with -v
Date: Tue, 01 Aug 2017 12:19:12 +0300
Message-ID: <87a83j3asv.fsf@ars-thinkpad>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hi,

Is it possible to output symbols which constitute non-matched
parts of text? For example, I expect

printf "banana\napple" | grep --invert-match --only-matching 'ban'

to produce

ana
apple

or

apple

, but it doesn't produce anything.

I need -o because I grep multiline pattern with -z.

--
Arseny Sher




Acknowledgement sent to Arseny Sher <sher-ars@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#27902; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 31 Dec 2019 19:45:01 UTC

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