diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-11-04 22:00:57 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-11-05 03:14:06 +0100 |
commit | 3a0bcb88b1cd832d3e26cfd7074c5344129f81a4 (patch) | |
tree | a94b0a0b04bab6a032a2d306fec6ff0b37341831 /share | |
parent | a632aa52833e6f47047692a09301b437defef32f (diff) |
bin/grepc, grepc.1: -A, -B, -C: Add flags for printing context.
These flags are passed to pcre2grep(1).
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man1/grepc.1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1 index 0e01781..ac124f3 100644 --- a/share/man/man1/grepc.1 +++ b/share/man/man1/grepc.1 @@ -122,6 +122,21 @@ Uses within type definitions .RE .SH OPTIONS .TP +.BI \-A \~n +Print +.I n +lines of trailing context after a match. +.TP +.BI \-B \~n +Print +.I n +lines of leading context before a match. +.TP +.BI \-C \~n +Print +.I n +lines of context surrounding a match. +.TP .B \-c Surround the matched strings with escape sequences to display them in color on the terminal. |