I try to grep like this:
grep -E '(UNIQ_23A0E66922726E9|UNIQ_23A0E66D943CFF3)' xst.sql
however I need some bytes (not lines) before and after the match.
if i use both -E and -P i got:
grep: conflicting matchers specified
I want functionality like
grep -o -P '.{0,10}UNIQ_23A0E66922726E9.{0,10}' xst.sql
but for all strings at once - in the example I have 2 but in reality I grep for 1000+.
grep -Po '.{0,10}(UNIQ_[0-9A-F]{15}).{0,10}' xst.sql