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

Full log


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'




This bug report was last modified 5 years and 223 days ago.

Previous Next


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