> 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
Attachment:
pgpaO7ePdkGcZ.pgp
Description: PGP signature