logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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