Linux下使用find查找文件内容,跳过所有目录名成和指定子目录的方法

例如要在当前目录下查找那些文件里存在Launcher2的字符,跳过所有目录文件,并忽略当前目录下的out子目录,命令为:

find . -path ./out -prune -o -name "*.*" -type f -print |xargs grep Launcher2




你可能感兴趣的:(Linux下使用find查找文件内容,跳过所有目录名成和指定子目录的方法)