1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:45:07 +00:00
serenity/Base/usr/share/man/man1/grep.md
sin-ack cbc89632b9 LibCore+Base: Add way to hide ArgsParser opt.s from specific usage texts
This adds the ability to hide certain options from certain help texts.
`--complete` is always hidden, whereas `--help` and `--version` are
hidden from Markdown help text only.
Note that in all cases these three options are hidden from the short
usage line.
2022-04-06 11:39:08 +02:00

1.1 KiB

Name

grep

Synopsis

$ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--line-numbers] [--invert-match] [--quiet] [--no-messages] [--binary-mode ] [--text] [-I] [--color WHEN] [--count] [file...]

Options:

  • -r, --recursive: Recursively scan files
  • -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
  • --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)
  • -c, --count: Output line count instead of line contents

Arguments:

  • file: File(s) to process