The example supports many options.

egrep.pl --help Options for Many-Core Engine: --max-workers=NUM override max workers (default auto) e.g. auto, auto-2, 4 --chunk-size=NUM[KM] override chunk size (default 4M) minimum: 200K; maximum: 20M Usage: egrep.pl [OPTION]... PATTERN [FILE] ... Search for PATTERN in each FILE or standard input. Example: egrep.pl -i 'hello world' menu.h main.c Regexp selection and interpretation: -e, --regexp=PATTERN use PATTERN as a regular expression -i, --ignore-case ignore case distinctions Miscellaneous: -s, --no-messages suppress error messages -v, --invert-match select non-matching lines --help display this help and exit Output control: -m, --max-count=NUM stop after NUM matches -n, --line-number print line number with output lines -H, --with-filename print the filename for each match -h, --no-filename suppress the prefixing filename on output -q, --quiet, --silent suppress all normal output -R, -r, --recursive equivalent to --directories=recurse --include=PATTERN files that match PATTERN will be examined --exclude=PATTERN files that match PATTERN will be skipped --exclude-from=FILE files that match PATTERN in FILE will be s +kipped --exclude-dir=PATTERN directories that match PATTERN will be ski +pped requires a recent egrep binary for --exclu +de-dir -L, --files-without-match only print FILE names containing no match -l, --files-with-matches only print FILE names containing matches -c, --count only print a count of matching lines per F +ILE With no FILE, or when FILE is -, read standard input. If less than two FILEs given, assume -h. Exit status is 0 if match, 1 if no match, and 2 if trouble.

In reply to Re^2: grepping a large file and stopping on first match to a list by Anonymous Monk
in thread grepping a large file and stopping on first match to a list by msh210

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.