將目錄內所有的某附檔名遞迴移除

例如我要將桌面內所有 .wma 檔案遞迴移除. 可以用下列指令 :

find ~/Desktop/ -name *.wma -exec rm -v {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.