From 11e62a17c55c2199a3925c4ea19e9a96c383b7c8 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 15 Feb 2017 18:28:42 +0100 Subject: magrep: add -p to print matches and the context and -o to only print matches --- man/magrep.1 | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'man/magrep.1') diff --git a/man/magrep.1 b/man/magrep.1 index 4c83127..dbb437b 100644 --- a/man/magrep.1 +++ b/man/magrep.1 @@ -1,4 +1,4 @@ -.Dd August 2, 2016 +.Dd February 15, 2017 .Dt MAGREP 1 .Os .Sh NAME @@ -69,6 +69,29 @@ case insensitively. Do not show more than .Ar max matches. +.It Fl o +Print each match, +not the entire line. +This option is ignored if +.Fl c, +.Fl q +or +.Fl v +is specified. +.It Fl p +Print matching messages +.Ar msgs , +the matching line and the header. +If +.Fl o +is specified each match is printed, +instead of the matching line. +This option is ignored if the +.Fl c, +.Fl q +or +.Fl v +is specified. .It Fl q Quiet mode: do not print anything, quit as soon as possible. -- cgit 1.4.1