Shawson Lim

搬运工. 砌匠. 包工头.

Category
 » mysql
 » golang
 » linux
 » git
 » php
 » front
 » staticstics
 » default
 » tools

[Linux] find - 文件搜索

22 Oct 2014 » linux

在某个目录中搜索包含某个关键字的文件列表

$ find . -type f -name "*.php" | xargs egrep 'keyword'

涉及命令:find, xargs, egrep

© Shawson Lim - https://github.com/linsir123 - Powered by Jekyll.