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

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



On 6/20/08, Huck <dhuckaby 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/


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