|
By default, Mac OS X drops a lot of ".DS_Store" and ".localized" files on systems. These files don't need to be a part of your backup and recovery process. They can also be the source of some problems in the Finder (or so I am told). This script attempts to locate and delete all the ".DS_Store" and ".localized" files it can find on your boot disk. It can be run from the command line or as a cron task. Although I've tested this script and believe it functions as designed on Mac OS X 10.3 systems, I provide it "as is" without warranty or support. If you choose to try this script on your own Mac system, you assume all responsibility and liability for what happens (i.e., if it wipes out all your data, that's not my fault or my problem, and all I will do is apologize for your loss).
#!/bin/csh # # Removes unnecessary ".DS_Store" and ".localized" files. # # # Updated: October 5, 2004 # By: Mike Salsbury # # echo " " echo "This script will find and remove .DS_Store and" echo ".localized files on the boot drive." echo " " echo "Enter the root/admin password when/if prompted." echo " " echo "Removing .localized and .DS_Store files ...." sudo find / \( -name ".localized" -or -name ".DS_Store" \) -print -exec rm -rf {} \; echo " " echo "Finished."
Related Blogs:
Related Links:
|