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.

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. (2017年8月01日 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. (2017年8月01日 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: 2017年8月01日 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. (2017年8月02日 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. (2019年12月31日 19:35:02 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 6 days ago.

Previous Next


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

AltStyle によって変換されたページ (->オリジナル) /