Author Topic: How to edit a large text file?  (Read 3389 times)

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« on: September 10, 2004, 02:17:53 am »
I have SL-5600, and I have a large text file, current size is 4.5MB, I want to edit on the Zaurus.  I don't care if the system is sharp ROM or OpenZaurus or a debian flavor.   Is there such a program out there.  I know there are programs to read large text files, I am wondering if there are any to edit large text files.  Thanks in advance.

Steven

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
How to edit a large text file?
« Reply #1 on: September 14, 2004, 06:34:40 pm »
Seems like the problem you would have is reading the entire file, or even a significant fraction of it, into memory. Short of finding a program to do that for you, you might try to move it off onto another system, and splitting it up into more manageable chunks. My 6K doesn't have the split command, and I doubt that any of them do, but Linux on a full workstation should. You can use that to split it. Kludgy I know but barring that "wonderful" program to load it into memory piecemeal you probably don't have another option.

Good luck,

gdog
You can tell a lot about a man by the condition of his shoes

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« Reply #2 on: September 14, 2004, 07:35:03 pm »
Thanks for the idea, but I am trying to find a solution for a friend and that is not reasonable for him.  I did find one solution that kind of works.  If OZ 3.3.6-pre1 is installed and all the applets are turned off, I can edit about a 8MB file.  I hope OZ continualy gets better, as I would like to use it, but it has problems I do not know how to work around.  So if my friend wants to do this could us OZ.  I am wondering if there is a way to free memory on the Sharp ROM as well?

Steven

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
How to edit a large text file?
« Reply #3 on: September 14, 2004, 11:24:29 pm »
You might try setting up a larger and external swap file on an SD card. It would be slower than internal RAM but should increase your ability to open large files. There are lots of posts on how to do this if you search.

Good luck,

gdog
You can tell a lot about a man by the condition of his shoes

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« Reply #4 on: September 15, 2004, 12:43:43 am »
I have been reading about swap files, and I may or may not try it.  But I came across something that I beleive is related.  Turning off Fast load on apps frees up a lot of memory.  I unchecked fast load on: calandar, address book, todo list, email, voice recorder.    Now I have about 14MB free, but I can not open a 4.2MB file with Text Editor or Hancom Word.  Why are these programs using so much memory.  Where I had this 4.2MB file opened under OZ 3.3.6-pre1 with only 8MB.  What is going on?  Is it because of the different apps use memory more effitivly?  Any ideas?

Steven

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« Reply #5 on: September 15, 2004, 12:57:59 am »
I had one thought, that OZ was using opie as its "Window Manager", so maybe one of the opie programs installed on the sharp ROM will work.  Anyone know which one I should use?  Here is the url for opie 1.0.3 http://opie.handhelds.org/feed/stable/sharprom/ if someone knowledgable is willing to look for me.  I saw a couple that could work, but I am hoping someone can tell me which one uses memory more efficiently.

Steven

stbrock

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • http://
How to edit a large text file?
« Reply #6 on: September 15, 2004, 02:17:32 am »
If you can run Vim on your Z, there are options that facilitate editing large files. Edits are immediate and permanent, written to the file as you type. An editor such as sed in a shell script might also get the job done in some circumstances. I suspect you are more likely to find what you need in a console editor rather than a GUI editor. Not sure any of this will work on you machine, but it might be worth checking.

jesizmi

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • http://
How to edit a large text file?
« Reply #7 on: September 15, 2004, 10:59:38 am »
Hi,
AFAIK me (microemacs) and the embedded editor of mc (midnightcommander) don't have any problem with large files.
I opened a 10M file to verify and it worked without any Problem.

I admit, that operating either of these is something you have to get used to, but once you did it, they're very powerful tools.

IMO, to get to know mc is time well invested and worth the efford.

j.
C860 Cacko ROM 1.23 / OZ 3.5.4.1
CF: 512M extreMemory
SD: 1G noname (2 partitions automounted; vfat+ext2)
Stylus: Tungsten T

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« Reply #8 on: September 15, 2004, 01:48:29 pm »
I tried some of the programs at http://opie.handhelds.org/feed/stable/sharprom/, with no success.

Steven

SJR3t120

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
How to edit a large text file?
« Reply #9 on: September 15, 2004, 01:50:13 pm »
Is there a version of mc for SL-5600?  I sure would like to try it if it allows to open a 10 MB file on SL-5600.  Where can I find out info about this ROM?

Steven

gdfj12

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
How to edit a large text file?
« Reply #10 on: September 15, 2004, 02:47:14 pm »
I like ZEditor, it's intended to be a light weight editor.

ZSI link:
http://www.killefiz.de/zaurus/showdetail.php?app=1707

homepage link:
http://www.aa.alpha-net.ne.jp/satoshic/dw_engzd.htm

gdfj12
Zaurus SL-5500, Cacko ROM & modified kernel
Linksys WCF11, Lexar 256 MB CF & SD, Sandisk 128 MB SD
Custom Teflon/Acetal stylus
gdfj12
---------
Zaurus SL-5500, Cacko ROM & modified kernel
Linksys WCF11, Lexar 256 MB CF & SD, Sandisk 128 MB SD
Custom Teflon/Acetal stylus, homemade 8xAA battery extender, RS camcorder wall wart for charging (selector switch glued @ 5V.)