diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-10-26 22:12:12 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-01 21:12:58 +0100 |
commit | 50a65f02a8d3de8ae9e8cc1fc2ab28edd87983e0 (patch) | |
tree | f9b9cd88e6a17ff7e55a41ae6adf5edd322b1aaa /Base/usr/share/man/man1/grep.md | |
parent | a4e805756d4de4dc314a7e6882ac9af8045b115b (diff) | |
download | serenity-50a65f02a8d3de8ae9e8cc1fc2ab28edd87983e0.zip |
Manpages: Auto-generate many through ArgsParser
This set was hand-curated, guided by the questions:
- Does it have at least three options, i.e. is the help page
non-trivial?
- Is the program unusual, i.e. does listing it in Help or on
man.serenityos.org spread awareness?
- Is the program common, but we only implement a subset of 'common'
flags?
Diffstat (limited to 'Base/usr/share/man/man1/grep.md')
-rw-r--r-- | Base/usr/share/man/man1/grep.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/grep.md b/Base/usr/share/man/man1/grep.md new file mode 100644 index 0000000000..ad1ae076b9 --- /dev/null +++ b/Base/usr/share/man/man1/grep.md @@ -0,0 +1,31 @@ +## Name + +grep + +## Synopsis + +```sh +$ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--invert-match] [--quiet] [--no-messages] [--binary-mode ] [--text] [-I] [--color WHEN] [file...] +``` + +## Options: + +* `--help`: Display help message and exit +* `--version`: Print version +* `-r`, `--recursive`: Recursively scan files +* `-E`, `--extended-regexp`: Extended regular expressions +* `-e Pattern`, `--regexp Pattern`: Pattern +* `-i`: Make matches case-insensitive +* `-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 +* `--binary-mode`: Action to take for binary files ([binary], text, skip) +* `-a`, `--text`: Treat binary files as text (same as --binary-mode text) +* `-I`: Ignore binary files (same as --binary-mode skip) +* `--color WHEN`: When to use colored output for the matching text ([auto], never, always) + +## Arguments: + +* `file`: File(s) to process + +<!-- Auto-generated through ArgsParser --> |