2010年1月19日 星期二

Excute command with the result of finding files in a specifical condition

Step1: Test the condition find /local/tmp -name "*no.filecount*" -size -10k Step2: Excute command after the "find", ex: delete the abandoned files ".DS_Store" find /local/1* -name ".DS_Store" -size -10k -exec rm {} \;

沒有留言: