[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27902: Using -o with -v
From: |
isabella parakiss |
Subject: |
bug#27902: Using -o with -v |
Date: |
Wed, 2 Aug 2017 14:49:07 +0200 |
On 8/1/17, Arseny Sher <address@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'