彩色grep? [英] Colored grep?

查看:190
本文介绍了彩色grep?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看到grep有着色功能

  grep -C 99999  -  color< regexp> < filename> 

还有什么其他方法?

解决方案

为了搜索源代码,我使用 ack 。有很多选项对于搜索代码(例如自动忽略SCM目录)是有意义的。


Sometimes coloring a logfile or other gives a good overview when looking for stuff and behaviors

I just saw that grep have a coloring feature

grep -C 99999 --color <regexp> <filename>

What other methods are there?

解决方案

For searching source code, I use ack. It's got a lot of options that make sense for searching code (such as automatically ignoring SCM directories).

这篇关于彩色grep?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆