1、find /etc/ -perm 777 -exec ls -l {} \;
find [path...] [expresion] -exec [command] argment {} \; {} 是上一个命令的结果集,做为后面命令的处理目标。
2、find /etc/ -name *.conf -exec cp {} /tmp/conf/ \;
1、find /etc/ -perm 777 -exec ls -l {} \;
find [path...] [expresion] -exec [command] argment {} \; {} 是上一个命令的结果集,做为后面命令的处理目标。
2、find /etc/ -name *.conf -exec cp {} /tmp/conf/ \;