ファイルの再帰的削除

 http://www.redout.net/data/command.html などを参考にしつつ・・・
 ディレクトリの中を再帰的に検索し、*.oを削除する*1


find . -name '*.o' -type f -exec rm {} [?];
 同様に*.c、*.h以外をすべて削除する場合は。

find . [?]( ! -name '*.c' -a ! -name '*.h' [?]) -type f -exec rm {} [?];


nameオプションの前に!とか書けるのね。へ〜〜(^^;

*1:[?]の部分はバックスラッシュ。書き方が解らん(T_T)