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/ \;