如何让grep的输出字符有色彩

在全局变量下加入以下代码:
alias grep=’grep –color=auto’
QQ20141129144614
出自grep的官方文档



--color[=WHEN],
--colour[=WHEN] use markers to highlight the matching strings;
WHEN is `always', `never', or `auto'
如何让grep的输出字符有色彩
Scroll to top