The Fidelix Linux Distribution

Simple, Stable, and Secure

GREP(1) User Commands GREP(1)

grep - manual page for grep 1.31.1

grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

BusyBox v1.31.1 (2020-04-30 13:38:01 EDT) multi-call binary.

Search for PATTERN in FILEs (or stdin)

Add 'filename:' prefix
Do not add 'filename:' prefix
Add 'line_no:' prefix
Show only names of files that match
Show only names of files that don't match
Show only count of matching lines
Show only the matching part of line
Quiet. Return 0 if PATTERN is found, 1 otherwise
Select non-matching lines
Suppress open and read errors
Ignore case
Match whole words only
Match whole lines only
PATTERN is a literal (not regexp)
PATTERN is an extended regexp
-m N
Match up to N times per file
-A N
Print N lines of trailing context
-B N
Print N lines of leading context
-C N
Same as '-A N -B N'

-e PTRN Pattern to match

-f FILE Read pattern from file

April 2020 Fidelix 1.0