1) 查看指定目录下文件名中包含字符串abc的.log文件
find /schedapps/test/log -type f -name "*abc*.log"
find /schedapps/test/log -type f -name "*.log" | grep abc
2) 查看指定目录下文件名中不包含字符串abc的文件
find /schedapps/test/log -type f ! -name "*abc*.log"
3) 查看指定目录下文件名中不包含字符串abc的.log文件
find /schedapps/test/log -type f -name "*.log" | grep -v abc
4) 查看指定目录下文件名中不包含字符串abc也不包含def的.log文件
find /schedapps/test/log -type f -name "*.log" | grep -v abc | grep -v def
5) 查看指定目录下文件中包含字符串abc的.log文件
find /schedapps/test/log -type f -name "*.log" | xargs grep abc
6) 删除指定目录下七天前修改的.log文件
find /schedapps/test/log -type f -name "*.log" -mtime +7 | xargs rm -f
7) 查看指定目录下others有写权限的文件
find /schedapps/etmd -type f -perm -o+w -exec ls -l {} \; | more