Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

pegrep — multi-line perl-regexp grep

Description

       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.

Examples

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

Name

       pegrep — multi-line perl-regexp grep

See Also

hxtools(7), pesubst(1)

hxtools                                            2017-01-13                                          pegrep(1)

Syntax

pegreppatternfile...

See Also