On 10/3/19 8:54 AM, Matt Zand wrote:
> Is it possible to output symbols which constitute non-matched parts of
> text? For instance, I expect
>
> printf "banana\napple" | grep --invert-match --only-matching 'ban'
>
> to produce
>
> ana
> apple
>
> or
>
> apple
>
> , but it doesn't produce any
Hi,
Is it possible to output symbols which constitute non-matched parts of
text? For instance, 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.