summaryrefslogtreecommitdiff
path: root/Base/usr/share
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-05 00:35:31 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-06 08:57:05 -0700
commit1d777073fd2b12cedff4a3f95f348b88c663694c (patch)
treeb026ee6caf0c037582b2183e43bcad55ac709a0f /Base/usr/share
parentb9a270e5e7b7895c23f9bdd22f4a93015def80c7 (diff)
downloadserenity-1d777073fd2b12cedff4a3f95f348b88c663694c.zip
grep: Add ability to output line numbers
Diffstat (limited to 'Base/usr/share')
-rw-r--r--Base/usr/share/man/man1/grep.md3
1 files changed, 2 insertions, 1 deletions
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