|
|
"..bunch of warnings..."
Original Message: It throws a bunch of warnings, but this is because the find command will find a nonenglish lproj, remove it, and then try to recurse down into it.
You're missing a -prune option in your find command which tells find to not traverse down into the directory you just removed. Here's an example of what the command should look like find / ! -name English.lproj -name "*.lproj" -type d -exec rm -r -- {} ; -prune
Lo
That's too broad!!
I tried this and there are some .lproj files which are needed for the system which aren't called "English.lproj". Removing them means reinstalling the system (which I've just done ...).
Here's a much faster script (using sh this time) which is more selective, it just removes the listed set of language files:
df /
date
for L in French Dutch Spanish Italian Swedish Portuguese German; do
if [ "$NAMES" ]; then
NAMES="$NAMES -or"
fi
NAMES="$NAMES -name $L.lproj"
done
find / ( $NAMES ) -type d -print -exec rm -rf -- {} ; -prune
df /
date
This gave me back a very welcome ~100Mb on my far-too-small partition.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|