DOKK / manpages / debian 12 / hxtools / pegrep.1.en
pegrep(1) hxtools pegrep(1)

pegrep — multi-line perl-regexp grep

pegrep pattern file...

Greps in a set of files for a given Perl regular expression pattern, spanning multiple lines, and shows the result with one line before and after for context.

	pegrep '}[\s\n]*else[\s\n]*{' $(find . -type f -name "*.cpp")

hxtools(7), pesubst(1)

2017-01-13 hxtools