> Hello List, > > to clean some directories of mine, I use > > rm -rf * > > but files named as `.log' are not removed. > > Is there a better way to do so ? > > Thanks in advance, > Jerome
Your problem is that the shell doesn't expand the '*' to hidden files. You could do '.*', but that would match '..' and '.' too. Your could rm -rf the whole directory and then mkdir it again. Otherwise find . -depth -mindepth 1 -exec rm '{}' \; could do the job. Christopher
pgpPMbGa0bDQR.pgp
Description: PGP signature