File: pegrep.1

package info (click to toggle)
hxtools 20201116-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,696 kB
  • sloc: ansic: 5,074; perl: 3,589; cpp: 2,152; sh: 1,610; asm: 173; makefile: 153
file content (20 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.TH pegrep 1 "2017-01-13" "hxtools" "hxtools"
.SH Name
.PP
pegrep \(em multi-line perl-regexp grep
.SH Syntax
.PP
\fBpegrep\fP \fIpattern\fP \fIfile\fP...
.SH Description
.PP
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.
.SH Examples
.PP
.nf
	pegrep '}[\\s\\n]*else[\\s\\n]*{' $(find . -type f -name "*.cpp")
.fi
.SH See also
.PP
\fBhxtools\fP(7), \fBpesubst\fP(1)