On 8/1/17, Arseny Sher <sher-...@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'



Reply via email to