On 02/27/2008 09:39 AM, Jerome BENOIT wrote:
to clean some directories of mine, I use rm -rf * but files named as `.log' are not removed.
Dot files are not expanded by * - to remove just the .log files, for example:
find ./ -type f -name .log -exec rm -rf {} \; To remove everything in $PWD, similar to rm -rf: find ./ -exec rm -rf {} \;These are just quick examples - find has many powerful options to make the above much "safer" - be careful.. ;)
-- Kind Regards, Michael