File: pegrep.1

package info (click to toggle)
hxtools 20180301-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,600 kB
  • sloc: ansic: 5,926; perl: 3,905; sh: 1,638; cpp: 342; makefile: 191; asm: 173
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)