bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27902: Using -o with -v


From: Arseny Sher
Subject: bug#27902: Using -o with -v
Date: Tue, 01 Aug 2017 12:19:12 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]