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.
--
Cheers,
Matt Zand
Cell: 202-420-9192
Work: 240-200-6131
High School Technology Services
DC Web Makers
Coding Bootcamps