summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-05 13:31:33 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-05 17:13:49 +0100
commitbebb11c38f6ef3644c7b4a1af61c3b890249c59c (patch)
treef1da9e98d32d337c5a0ffe3b06ed0e4ff13ef688 /share
parentab07b22a4dd31ccb9beef150fd478c1f8ce6bf31 (diff)
bin/grepc, grepc.1: -c: Add option to count matches
As in pcre2grep(1) and grep(1). Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'share')
-rw-r--r--share/man/man1/grepc.14
1 files changed, 4 insertions, 0 deletions
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index 7845255..e1236c7 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -137,6 +137,10 @@ Print
.I n
lines of context surrounding a match.
.TP
+.B \-c
+Do not print matches,
+and instead print a count of them.
+.TP
.B \-h
Suppress the prefixing of file names on output.
.TP