OK, just to clarify, I've instaled custom with only Engl and Russ (some one removed all language packs) so now in Settings-General-keyboard-Int. keyboards i see all languages, but unable to activate any, but only ENG&RUS, but i need JAP/Emoji. thank you in advance.

Sorry, don't know what to tell you. When I started doing this for the first time, I had to find the correct code myself. It seems some codes that work for others doesn't work for me. After a couple of tries, I found this to work.

I also noticed when I use winscp to run the code, I cannot do other things on my desktop or I get a timeout error. It takes about a minutes and after that it gives you a list of files that is deleted.

The error you see was it during the script in terminal? Have you rebooted the phone and verify the folders have been deleted?

I believe the first '.' means find from here down i.e. from the current directory and subdirectories so where do you need to be to run it? Is there any harm in changing this to '/' to find ALL occurrences from root down?

Originally Posted by duceduc

This code works for me using winscp terminal(leave out the quotes) . It leaves english and japanese.

For a Mac:
This was a bit trickier, Cyberduck wasn't being an intelligent program.

You ssh into your iphone, then type
"
cd /
"
this will bring you to the root directory

then
"
for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ru*.lproj" -exec echo {} \; | sed -e 's/\.\///'`; do rm -vr ./$file ;
"
this will initiate the search and deletion, but nothing is going to be changing if you look into the directories while it's going on. Just wait it out for a good hour or so so that it finds everything.

You could cut the execution time down by skipping all the files and deleting only the directories by piping through grep -E proj$, then instead of the for loop, pipe the find output to while read file; do rm -rf "$file"; done and it should catch all the filenames with spaces. That is basically what I did upthread and it only took a couple minutes to find and remove everything.

I'm not sure what it stands for but it's definitely not "copy directory," it tells the program to go to a certain directory.

Say I'm in the first directory, root (/)
I'm then at /
Let's say there are five directories. If they are a, b,c,d, and e, and I type in "cd a"
I'l be in /a
then there are three, g,h,c in that directory (folder)
If I type "cd h", it takes me to
/a/h
It's basically a step by step "go to directory"
To find out what directories (folders) are available, you can type in "dir"

im on a pc. so do i do that in winscp or in the terminal is my main confusion. or do i do it all in the terminal. i found the folder on the first step just in winscp. do i use that as commands in terminal or what?

i need like a video demo.lol do i run basically all the steps in terminal or where do i start first step? first time using ssh. always use iphonebrowser

OT: I was thinking about this earlier when doing it to my friends 3gs and I still don't see how this decreases ram usage. I can understand quicker starting of a program because there are less files to load, but not the increase in ram. Except for the launch daemons which from what I understand are like processes on a windows machine and run in the background? Correct if I'm wrong. Sorry for going off topic but it was bugging the crap out of me lol.

I spent a couple hours writing a script that is interactive, hopefully newbie friendly, verbose and hopefully makes it hard to delete the wrong things. Would a couple people volunteer to test it? I've tested it on my computer with dummy lproj directories and tested it on my phone. Seems to work great, and like I said, it makes it hard to delete the wrong things.

I tried to use bash builtin commands or basic non-builtins so I think it should run on any jailbroken phone. But I'm not entirely sure, so it would be nice to make sure it works for someone who has a fresh jailbreak.

So, volunteers, PM me and I will PM you the script. I use Linux so I have no clue how to use it with winscp, cyberduck or any of those tools, but it will run on the phone with MobileTerminal and should run by sshing in to the phone. If you can figure out how to get it on the phone, make it executable and run it, the script will do the rest. Then, as long as everything works, I'll post it here in a day or two.