MAGREP(1) | General Commands Manual | MAGREP(1) |
magrep
— search
messages matching a pattern
magrep |
[-c | -h |
-o | -p |
-q | -m
max] [-v ]
[-i ] [-l ]
[-a | -d ]
header: regex
[msgs ...] |
magrep
prints the names of files from the
specified msgs if the value of
header matches the POSIX Extended Regular Expression
regex. (See mmsg(7) for the message
argument syntax.)
If header is empty,
magrep
matches against the maildir flags of
msgs.
If header is
‘*
’, magrep
searches for the pattern in any header.
If header is
‘/
’, magrep
searches any plain text parts of the msgs body.
If no msgs are specified and
magrep
is used interactively, the current sequence
will be searched.
The options are as follows:
-a
-c
-v
is
specified, count non-matching headers instead.-d
-h
-p
but do not print the file name.-i
-l
-m
max-o
-c
, -q
or
-v
is specified.-p
-o
is
specified each match is printed, instead of the matching line. This option
is ignored if -c
, -q
or
-v
is specified.-q
-v
The magrep
utility exits 0 on success, 1
if no match was found and >1 if an error occurs.
Leah Neukirchen <leah@vuxu.org>
magrep
is not called mgrep because many
tools with this name already exist.
magrep
is in the public domain.
To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.
September 10, 2018 | Debian |