I'm twiting

访问统计

free counters

find+grep配合搜索文件命令解析

find ~/da -type f -name '*.php' -exec grep -H 'Main' {} \;

  1. 第一个参数 ~/da 指定目录
  2. -type f 搜索类型为文件
  3. -name 文件名,支持通配符
  4. -exec 结果作为参数给下边的命令执行
  5. -H 输出文件路径
  6. ‘Main’ 搜索包含的结尾
  7. {} \; -exec最后总是要加上他……

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>