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

更新时间:2019-08-18    来源:linux    手机版     字体:

【www.bbyears.com--linux】

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

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"

本文来源:http://www.bbyears.com/caozuoxitong/62789.html