Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Seven Mac OS X Tips
Subject:   Removing Localized Files?
Date:   2002-01-03 14:11:07
From:   morbus
I had read on some site somewhere concerning a shell command that you could use to delete all the international project files (.proj) EXCEPT for the English one - and that you'd save a good 200+ megs of space. Anyone have that command around? I can't for the life of me remember it.
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Removing Localized Files?
    2002-01-04 08:21:00  art50 [View]

    I copied this from...
    http://appledumplings.com/

    11/16/2001 Want to get rid of those languages files
    to free up space? What I did to be able to install.

    When I was installing the 10.1.1 update I had a space issue. I assume others may have the same. How to get rid of those Language files that were installed by apps or the original OS X install? Well because we have the BSD layer it is quite easy. BSD has many great utilities... "find" is one of them. Here is how I got rid of those language files.
    find / \! -name "English.lproj" -name "*.lproj" -type d -exec rm -r -- {} \;
    What this does is find items from the "/" directory look for all ending with ".lproj" but not "English.lproj" of type directory then execute the remove -r "recursively" on all found. you could add in other languages by inserting such as ' \! -name "Spanish.lproj" ' without the 's. Be careful . After using this myself I freed up 320 MB of space.
    Mileage may vary!!