コマンド:特定拡張子の検索と一括削除

skywalker

●不要なファイルのメンテナンス用

find /dir -name *.doc -exec rm -f {} \;
find /dir -name *.xls -exec rm -f {} \;
find /dir -name *.pdf -exec rm -f {} \;
find /dir -name *.PDF -exec rm -f {} \;
find /dir -name *.XLS -exec rm -f {} \;