Chinaunix首页 | 论坛 | 博客
  • 博客访问: 941607
  • 博文数量: 80
  • 博客积分: 2380
  • 博客等级: 大尉
  • 技术积分: 1049
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-14 11:06
个人简介

Only to find a successful way, not to find excuses for failure!

文章分类

全部博文(80)

文章存档

2016年(2)

2015年(4)

2014年(10)

2013年(10)

2012年(7)

2011年(17)

2010年(30)

分类: LINUX

2010-07-07 14:37:56

 
 
在当前目录下的.php文件中搜索hostnames这个词
 
find ./ -name "*.php" -type f -print | xargs grep -l "hostnames"

参考文献:

 

 
 http://lijunjie.javaeye.com/blog/174370

阅读(1133) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~