bug#37607: How to use Grep with Using -o

2020-01-02 Thread Paul Eggert
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

bug#37607: How to use Grep with Using -o

2019-10-03 Thread Matt Zand
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.