八 11
2
Find
Leave a comment »
find ./ -type d -name “CVS” -exec rm -r {} \;
find . -type f -perm 644 -group root -exec ls -l { } \;
find logs -type f -mtime +5 -exec rm { } \;
find . -name “admin.log[0-9][0-9][0-9]” -atime -7 -ok
find . -perm -7 -print | xargs chmod o-w
find ./ -name “*.html” -exec sed -i ‘s/law.baidu.com/tc-test-aos00.tc.baidu.com:8080\/mis/’ {} \;
find ./ -name “*.html” |xargs sed -i ‘s/law.baidu.com/tc-test-aos00.tc.baidu.com:8080\/mis/’
