例如:查找/opt目录下带ghost字符、文件名包含test的文件。grep -nl "ghost" $(find /opt -iname "*test*") // n 表示输出行号,l 表示只输出文件名。