From 1d777073fd2b12cedff4a3f95f348b88c663694c Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Fri, 5 Nov 2021 00:35:31 +0100 Subject: grep: Add ability to output line numbers --- Base/usr/share/man/man1/grep.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Base/usr/share/man') diff --git a/Base/usr/share/man/man1/grep.md b/Base/usr/share/man/man1/grep.md index ad1ae076b9..2a8a4d291f 100644 --- a/Base/usr/share/man/man1/grep.md +++ b/Base/usr/share/man/man1/grep.md @@ -5,7 +5,7 @@ grep ## Synopsis ```sh -$ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--invert-match] [--quiet] [--no-messages] [--binary-mode ] [--text] [-I] [--color WHEN] [file...] +$ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--line-numbers] [--invert-match] [--quiet] [--no-messages] [--binary-mode ] [--text] [-I] [--color WHEN] [file...] ``` ## Options: @@ -16,6 +16,7 @@ $ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--invert-match * `-E`, `--extended-regexp`: Extended regular expressions * `-e Pattern`, `--regexp Pattern`: Pattern * `-i`: Make matches case-insensitive +* `-n`, `--line-numbers`: Output line-numbers * `-v`, `--invert-match`: Select non-matching lines * `-q`, `--quiet`: Do not write anything to standard output * `-s`, `--no-messages`: Suppress error messages for nonexistent or unreadable files -- cgit v1.2.3