Quote:
Originally Posted by Siljrath
can someone please confirm i've got this right, and it's not going to hose my entire system...
|
You have a space between "/" and "*.sol" so this will do a recursive remove in "/" and next to that remove any files that match "*.sol".
Best get used to using "echo" statements to see what a command does when unsure.
Also, since you use "/", are you browsing the 'net as root user? If you definitely
should not.
Quote:
Originally Posted by Siljrath
that should get rid of all flash cookies from the system, right?
(including any that might have somehow decided to hide outside .macromedia directory)
|
AFAIK none should reside outside your ~/.macromedia directory.
Code:
find /home -maxdepth 2 -type d -name .macromedia | while read SOLDIR; do
echo "Removing .sol files in "${SOLDIR}""
find "${SOLDIR}" -type f -iname \*.sol -print0 | xargs -0 -iS rm 'S'
done
or shorter:
Code:
find /home -maxdepth 10 -type f -iname \*.sol -exec rm {} \;
or if ran solely from inside your own unprivileged user account:
Code:
find ${HOME} -maxdepth 2 -type d -name .macromedia | while read SOLDIR; do
echo "Removing .sol files in "${SOLDIR}""
find "${SOLDIR}" -type f -iname \*.sol -print0 | xargs -0 -iS rm 'S'
done
or shorter:
Code:
find ${HOME} -maxdepth 10 -type f -iname \*.sol -exec rm {} \;
also see tools like 'bleachbit'.