Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
pegrep(1)			    hxtools			     pegrep(1)

Name
       pegrep -- multi-line perl-regexp	grep

Syntax
       pegrep pattern file...

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")

See also
       hxtools(7), pesubst(1)

hxtools				  2017-01-13			     pegrep(1)

Name | Syntax | Description | Examples | See also

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pegrep&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help