linux centos6 7下递归查找文件内容 遍历所有文件
在当前目录下递归查找所有的文件中的"lampnick"字符串
grep "lampnick" -ri -n ./
-r, --recursive Read all files under each directory, recursively, following symbolic links only if they are on the command line. This is equivalent to the -d recurse option.
-i, --ignore-case Ignore case distinctions in both the PATTERN and the input files. (-i is specified by POSIX.)
-n, --line-number Prefix each line of output with the 1-based line number within its input file. (-n is specified by POSIX.)