[SOLVED]管道过来的没法高亮了
发表于 : 2009-04-10 12:52
为什么呢?
怎么让他恢复高亮?
怎么让他恢复高亮?
代码: 全选
--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. The deprecated environment variable
GREP_COLOR is still supported, but its setting does not have priority. WHEN is never, always, or auto.
但是grep 处于管道的末端,使用高亮应该是没问题的。BigSnake.NET 写了:一般来说管道里面不建议用高亮,因为会插入额外的字符