grep --color=auto

From wikieduonline
Revision as of 10:00, 6 January 2025 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


    --color[=WHEN], --colour[=WHEN]
             Surround the matched (non-empty) strings, matching lines,
             context lines, file names, line numbers, byte offsets, and
             separators (for fields and groups of context lines) with
             escape sequences to display them in color on the terminal.
             The colors are defined by the environment variable
             GREP_COLORS.  WHEN is never, always, or auto.


See also[edit]

Advertising: