GREP(1) General Commands Manual GREP(1)
NAME
grep — print lines that match patterns
SYNOPSIS
grep [OPTION...] PATTERNS [FILE...]
DESCRIPTION
grep searches for PATTERNS in each FILE. PATTERNS is one or more patterns sepa‐
rated by newline characters.
A FILE of “-” stands for standard input.
OPTIONS
--help Output a usage message and exit.
--color=auto
Display color on the terminal
REGULAR EXPRESSIONS
A regular expression is a pattern that describes a set of strings.
Perl-compatible regular expressions give additional functionality, and are docu‐
mented in pcresyntax(3)
ENVIRONMENT
GREP_COLOR=auto
Display color on the terminal
SEE ALSO
pcresyntax(3)
COPYRIGHT
Copyright 1998-2000, 2002, 2005-2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
POSE.
GREP(1)