一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

linux中grep输出字符有色彩配置

时间:2014-12-01 编辑:简简单单 来源:一聚教程网

在全局变量下加入以下代码:

alias grep='grep --color=auto'

QQ截图20141129144614

 出自grep的官方文档

--color[=WHEN],
--colour[=WHEN]       use markers to highlight the matching strings;
WHEN is `always', `never', or `auto'

热门栏目