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

Previous Next

Package: grep;

Reported by: Arseny Sher <sher-ars <at> yandex.ru>

Date: Tue, 1 Aug 2017 09:20:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 27902 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#27902; Package grep. (Tue, 01 Aug 2017 09:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arseny Sher <sher-ars <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Tue, 01 Aug 2017 09:20:02 GMT) Full text and rfc822 format available.

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

From: Arseny Sher <sher-ars <at> yandex.ru>
To: bug-grep <at> gnu.org
Subject: Using -o with -v
Date: Tue, 01 Aug 2017 12:19:12 +0300
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




Information forwarded to bug-grep <at> gnu.org:
bug#27902; Package grep. (Wed, 02 Aug 2017 12:50:02 GMT) Full text and rfc822 format available.

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

From: isabella parakiss <izaberina <at> gmail.com>
To: Arseny Sher <sher-ars <at> yandex.ru>
Cc: 27902 <at> debbugs.gnu.org
Subject: Re: bug#27902: Using -o with -v
Date: Wed, 2 Aug 2017 14:49:07 +0200
On 8/1/17, Arseny Sher <sher-ars <at> yandex.ru> 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'




Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 19:35:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 266 days ago.

Previous Next


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