Re: cleanup a directory

2008-02-27 Thread Michael Shuler
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 $PW

Re: cleanup a directory

2008-02-27 Thread Kamaraju S Kusumanchi
Jerome BENOIT wrote: > 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 ? Go to the previous directory and then remove the directory using rm -rf. This will remove other hidden files along w

Re: cleanup a directory

2008-02-27 Thread Christopher Zimmermann
> 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

cleanup a directory

2008-02-27 Thread Jerome BENOIT
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 -- Jerome BENOIT jgmbenoit_at_mailsnare_dot_net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe".