grep с регулярными выражениями, совместимыми с Perl (a grep with Perl-compatible regular expressions.)
OPTIONS WITH DATA
There are four different ways in which an option with data can be
specified. If a short form option is used, the data may follow
immediately, or (with one exception) in the next command line
item. For example:
-f/some/file
-f /some/file
The exception is the -o
option, which may appear with or without
data. Because of this, if data is present, it must follow
immediately in the same item, for example -o3.
If a long form option is used, the data may appear in the same
command line item, separated by an equals character, or (with two
exceptions) it may appear in the next command line item. For
example:
--file=/some/file
--file /some/file
Note, however, that if you want to supply a file name beginning
with ~ as data in a shell command, and have the shell expand ~ to
a home directory, you must separate the file name from the
option, because the shell does not treat ~ specially unless it is
at the start of an item.
The exceptions to the above are the --colour
(or --color
) and
--only-matching
options, for which the data is optional. If one
of these options does have data, it must be given in the first
form, using an equals character. Otherwise pcregrep
will assume
that it has no data.