现在的位置: 首页 > 综合 > 正文

linux 递归查找文件内容

2013年08月03日 ⁄ 综合 ⁄ 共 291字 ⁄ 字号 评论关闭

递归查找文件内容:
grep   -n   -ri   "slewing"   ./
在当前目下递归查找所有的文件
       -i, --ignore-case
              Ignore  case  distinctions  in  both  the  PATTERN and the input
              files.
       -R, -r, --recursive
              Read all files under each directory, recursively; this is equiv-
              alent to the -d recurse option.

 

抱歉!评论已关闭.