-ray wrote:
> On Tue, 13 Dec 2005, John Kosta wrote:
>
>> So:
>> find /path -type d -name "*[Cc]ache*" -print -exec "rm -f {}/*.*" \;
>>
>> doesn't work, because of M$'s
>> "Application Data/"
>
> Are you on linux? This works on debian. You may run into problems with
> other shell characters in filenames though (',",&,$,etc...).
>
> find . -type d -name '*[Cc]ache*' -exec rm -rf \"{}\" \;
Yes, -- on Slackware. The above did not work for me. I don't get an
error, but neither do the files get deleted. Not sure what is going
wrong on that one.
However, the next post did work, using xargs.
___________________
Nolug mailing list
nolug@nolug.org
Received on 12/14/05
This archive was generated by hypermail 2.2.0 : 12/19/08 EST