NAME

prep - a perl version of grep

SYNOPSIS

prep [ -chilnrv ] <perl regex> [ <path> ]

DESCRIPTION

prep is a perl version of the grep UNIX utility. The main differences anre the use of perlish regexes, and the -r option for recursive matches on directories.

OPTIONS

-c

Print only a count of the lines that contain the pattern.

-h

Prevents the name of the file containing the matching line from being appended to that line. Used when searching multiple files.

-i

Ignore upper/lower case distinction during comparisons.

-l

Print only the names of files with matching lines, separated by NEWLINE characters. Does not repeat the names of files when the pattern is found more than once.

-n

Precede each line by its line number in the file (first line is 1).

-r

Match recursively.

-v

Print all lines except those that contain the pattern.

SEE ALSO

perlre(1).

TODO

The -b option.

AUTHOR

Ave Wrigley (awrigley@cpan.org).