grep --color=auto

From wikieduonline
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

Advertising: