Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '"..bunch of warnings..."' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
"..bunch of warnings..."
Authored by: Anonymous on Apr 05, '01 05:46:11PM
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




[ Reply to This | # ]
That's too broad!!
Authored by: bgg on Apr 21, '01 05:46:52AM
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.

[ Reply to This | # ]