[K12OSN] Help with a script

Nils Breunese nils at breun.nl
Tue Sep 30 15:49:55 UTC 2008

Tim Born wrote:

> Good use of find.
>> find /home_student/tutorgroup/${w$}/{x}/.mozilla/ -exec rm -Rf {} \;
> Can we simplify this to a one-liner?  I believe you said you wanted  
> the .mozilla directory and all contents deleted?
> The above will leave the .mozilla directory in place.
> find /home_student -name .mozilla -exec rm -Rf {} \;

You could add '-type d' to make sure you're removing only directories.

Nils Breunese.

More information about the K12OSN mailing list