skip to main
|
skip to sidebar
乡下大哥
2010-04-22
[zz]grep如何递归目录并在指定类型文件中查找?
直观做法:grep -R "hello" *.c
但会提示*.c文件不存在
正确方法: find . -iname "*.c" -exec grep "hello" {} \;
如果要看文件名,加上-H
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Links
乡下大哥(MSN/Live Spaces)
Blog Archive
►
2014
(2)
►
December
(2)
►
2011
(3)
►
January
(3)
▼
2010
(78)
►
December
(2)
►
November
(12)
►
October
(3)
►
September
(14)
►
August
(6)
►
July
(2)
►
June
(2)
►
May
(4)
▼
April
(6)
net share x /delete提示系统错误5
Windows 7搜索zip文件
Crimson Editor
Windows下使用ls
[zz]grep如何递归目录并在指定类型文件中查找?
从VC6移植到VS2008
►
March
(7)
►
February
(10)
►
January
(10)
►
2009
(188)
►
December
(20)
►
November
(18)
►
October
(9)
►
September
(27)
►
August
(18)
►
July
(20)
►
June
(27)
►
May
(27)
►
April
(18)
►
March
(2)
►
February
(1)
►
January
(1)
►
2008
(63)
►
November
(3)
►
September
(4)
►
August
(12)
►
July
(11)
►
June
(4)
►
May
(4)
►
April
(10)
►
March
(9)
►
February
(2)
►
January
(4)
►
2007
(44)
►
December
(2)
►
November
(4)
►
October
(4)
►
September
(4)
►
August
(5)
►
July
(7)
►
June
(2)
►
May
(9)
►
April
(2)
►
March
(3)
►
February
(1)
►
January
(1)
►
2006
(30)
►
December
(5)
►
November
(3)
►
October
(10)
►
September
(10)
►
August
(1)
►
January
(1)
►
2005
(4)
►
December
(1)
►
November
(3)
►
2002
(1)
►
June
(1)
►
2001
(2)
►
December
(1)
►
November
(1)
►
2000
(1)
►
July
(1)
►
1999
(1)
►
May
(1)
About Me
乡下大哥
View my complete profile
No comments:
Post a Comment