一般Grep是在linux下开发的人员最为常用的一个命令了.我来添砖加瓦:大家可以将这个alias放入.bashrc下alias grep=’grep -r -n—color=auto—exclude-dir=.svn—exclude=*.swp’以后大家通过直接grep就可以有彩色且递归找到所有指定目录下符合条件的代码了eg: $ grep “public static void main” ~/src/
【实 × 新 × 奇】http://www.lycom.de/ 最新报道Ruby语言、Rails框架、Ubuntu、MacOSX和软件技术信息 Aardvark RSS
道喜技术日记
订阅 full-text RSS 或者 comments RSS.
Interesting links can be found at del.icio.us or by subscribing to my del.icio.us feed
Powered by SimpleLog
Comments
There is 1 comment on this post. Post yours →
一般Grep是在linux下开发的人员最为常用的一个命令了.
我来添砖加瓦:
大家可以将这个alias放入.bashrc下
alias grep=’grep -r -n—color=auto—exclude-dir=.svn—exclude=*.swp’
以后大家通过直接grep就可以有彩色且递归找到所有指定目录下符合条件的代码了
eg: $ grep “public static void main” ~/src/
Post a comment
Required fields in bold.