让grep显示颜色:
export GREP_OPTIONS=”–color=always” export GREP_COLOR=”1;32”
然后grep命令的结果中的pattern就会用指定的颜色高亮
要发表评论,您必须先登录。