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")
2017-01-13 | hxtools |