File: pegrep.1

package info (click to toggle)
hxtools 20251011-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,468 kB
  • sloc: ansic: 4,384; perl: 3,467; sh: 1,664; cpp: 353; makefile: 90
file content (15 lines) | stat: -rw-r--r-- 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.TH pegrep 1 "2017-01-13" "hxtools" "hxtools"
.SH Name
pegrep \(em multi-line perl-regexp grep
.SH Syntax
\fBpegrep\fP \fIpattern\fP \fIfile\fP...
.SH 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.
.SH Examples
.nf
	pegrep '}[\\s\\n]*else[\\s\\n]*{' $(find . \-type f \-name "*.cpp")
.fi
.SH See also
\fBhxtools\fP(7), \fBpesubst\fP(1)