The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

pgegrep - A simple grep using PGE for matching

SYNOPSIS

pgegrep [OPTIONS] PATTERN [FILE...]

DESCRIPTION

pgegrep aims to be a small and easy to use program in replacement of the standard grep utility. Regex support is whatever PGE will allow. It searches through files line by line and tests if the given pattern matches.

OPTIONS

-v
--invert-match

print lines not matching PATTERN

-V
--version

print the version and exit

--help

show this help and exit

-r
--recursive

recursively descend into directories

-L
--files-without-matches

print a list of files that do not match PATTERN

-l
--files-with-matches

print a list of files that do match PATTERN

-a
--text

treat binary files as text.

This uses a basic heuristic to discover if a file is binary or not. Files are read line by line, and it keeps processing "normally" until a control character is found, and then stops and goes onto the next file is that line matches.

-n
--line-number

print the line number for each match

-H
--with-filename

print the filename for each match