[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Help with a script



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]