prep - a perl version of grep
prep [ -chilnrv ] <perl regex> [ <path> ]
prep is a perl version of the grep UNIX utility. The main differences are the use of perlish regexes, and the -r option for recursive matches on directories.
Print only a count of the lines that contain the pattern.
Prevents the name of the file containing the matching line from being appended to that line. Used when searching multiple files.
Ignore upper/lower case distinction during comparisons.
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.
Prints the man page.
Precede each line by its line number in the file (first line is 1).
Match recursively.
Prints helpful information about usage.
Print all lines except those that contain the pattern.
prep supports the use of a .preprc file, which should be in your $HOME directory. If this file exists, prep will assume each line in this file is a default option. Options on the command line override these defaults. For example, if your .preprc file contains:
-r
then prep will act recursively, unless invoked with:
prep --nor
prep assumes options are bundled (see Getopt::Long::Configure), but all options are negatable, using the extended double dash option format (see Getopt::Long).
perlre(1).
Search
Getopt::Long File::Find Pod::Usage
Should run under any OS that perl runs on, but currently tested on:
solaris
The -b option.
Ave Wrigley (awrigley@cpan.org).
To install prep, copy and paste the appropriate command in to your terminal.
cpanm
cpanm prep
CPAN shell
perl -MCPAN -e shell install prep
For more information on module installation, please visit the detailed CPAN module installation guide.