grep高亮显示关键字(转)

让grep显示颜色:

export GREP_OPTIONS=”–color=always”
export GREP_COLOR=”1;32”

然后grep命令的结果中的pattern就会用指定的颜色高亮

This entry was posted in Linux. Bookmark the permalink.

发表评论