pcregrep -M 'a\nb' files...
Use ack! http://petdance.com/ack/
Thanks, pcregrep is exactly what I needed.oc: I don't think ack does multiline matching, does it?
Hm. I'm running RHEL 5.something, and I have pcregrep 4.5, but it doesn't support a -M option. You must have a newer version of pcregrep. Back to perl for me.
Thanks dude, exactly what I needed.
Post a Comment