
01-22-2009, 06:09 PM
|
Jaguar
|
|
Join Date: Sep 2008
Posts: 89
|
|
Quote:
Originally Posted by braid
There is other program like BlueHarvest but free?
|
Yes, a simple script.
Code:
#!/bin/bash
arg=$#
if [ $arg -ne 1 ]; then
echo
echo "Script Usage"
echo
echo "clean /Volumes/Windows"
echo
echo "Script accepts/requires only one argument, the directory to be cleaned"
echo
else
# Clean Unix hiddden files
find $1 -name *._.* -type f -exec rm -f '{}' \;
find $1 -name *.DS_Store* -type f -exec rm -f '{}' \;
find $1 -name *.Trash* -type f -exec rm -f '{}' \;
find $1 -name *.Temporary* -type f -exec rm -f '{}' \;
find $1 -name *.fseventsd* -type f -exec rm -f '{}' \;
find $1 -name *.directory* -type f -exec rm -f '{}' \;
#Clean Windows hidden files
#find $1 -name *Thumbs.db* -type f -exec rm -f '{}' \;
#find $1 -name *folder.jpg* -type f -exec rm -f '{}' \;
#find $1 -name *AlbumArtSmall.jpg* -type f -exec rm -f '{}' \;
fi
Copy and paste the above into a file named clean, move it to /usr/bin/ and make it executable.
i.e.
Open a terminal and type
Code:
sudo vi /usr/bin/clean
hit 'i' to insert, then copy and paste the script, now hit escape, then shift+zz to save and make it executable with
Code:
sudo chmod +x /usr/bin/clean
Before you log out just run it on the partition you want cleaned.
As far as what distro to use, there is no reason to use a "distro" anymore... use retail.
Edit -
Before anyone goes there...
There's no reason to run a "distro" anymore beyond figuring out what kexts you need and setting up your drive is what I meant. 
Last edited by Dies; 01-22-2009 at 06:32 PM.
|