[K12OSN] Script to flush down the drain files from every user home...

Robert Arkiletian robark at gmail.com
Fri Jun 20 20:18:36 UTC 2008

On 6/20/08, Huck <dhuckaby at paasda.org> wrote:
> !#/bin/bash
>  for x in `ls /home`; do
>  echo "Doing $x ..."
>  cd /home/${x}/.mozilla/firefox/*.default/Cache
>  rm -Rf *
>  done
>  that was one from a while back...
>  change the path in the 'cd' line from
> .mozilla/firefox/*.default/Cache to whatever you want..

If the cd fails you might rm -Rf something you don't want to. Better
to rm the full path instead of cd to it. I thinkthis  issue  came
before too. Maybe it was Les who warned about it.

Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada
Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/
C++ GUI tutorial http://www3.telus.net/public/robark/

More information about the K12OSN mailing list