彩色grep? [英] Colored grep?

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

问题描述

有时,在查找日志文件或其他文件时,您可以查看 行为

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

看到grep有着色功能

I just saw that grep have a coloring feature

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

还有什么其他方法?

推荐答案

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

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天全站免登陆