1. To fix rights inside folder. It's important after files copy from FAT or NTFS partitions into HFS+ partitions.
#------- the start of the script -------
#!/bin/sh find . -type f | awk -F '\t' '{print "\""$1"\""}' | xargs chmod 664 find . -type d | awk -F '\t' '{print "\""$1"\""}' | xargs chmod 775
#------- the end of the script -------
2. To decrease size of Leopard (delete all designable.nib files automatically). The size of Application Folder shrinks on several gigabytes!
#------- the start of the script -------
#!/bin/sh find / -type f -name designable.nib | awk -F '\t' '{print "\""$1"\""}' | xargs rm -v
#------- the end of the script -------
P.S.: Don't forget to use Trimmit (Delete junk files, Clean out nibs and so on).
©2009 Rosmir - Stepan A. Baranov
$Id: twousefulscripts.html 413 2009-01-06 21:16:05Z rosmir $