home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / editors / 2091 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!may
  2. From: may@Apple.COM (Patrick May)
  3. Newsgroups: su.vaxhax,apple.general,comp.editors
  4. Subject: Re: vi help
  5. Message-ID: <71739@apple.Apple.COM>
  6. Date: 27 Aug 92 19:29:17 GMT
  7. References: <71735@apple.Apple.COM>
  8. Distribution: ba
  9. Organization: Apple Computer Inc., Cupertino, CA
  10. Lines: 21
  11.  
  12. In article <71735@apple.Apple.COM> spud@apple.com (Dave "Spud" Kalin) writes:
  13. >
  14. >Hi there everybody!  I don't know where to post this, so hopefully someone
  15. >will see it here and/or post it to the right place.
  16. >
  17. >Anyway, I need some help with vi (or another editor on the vax). I have
  18. >managed to accumulate a 14 megabyte file (yes, 14MB) in my directory, and
  19. >I'd like to use an editor to strip out the deadwood bytes.
  20. >
  21. >However, when I try to use vi, it hangs while opening the file. Is there s
  22. >vax editor that can handle files of this size?
  23.  
  24.      I believe vi attempts to load the whole file in memory, although I'm
  25. not certain.  That would account for the behavior you describe.  Your only
  26. other option as far as editors go would be to use emacs.  Beware that the
  27. commands are not terribly intuitive at first (but it kicks vi's butt :-).
  28.  
  29.      If you know what you want to remove from the file you could use
  30. sed, awk, or C.  Let me know if you need a hand (415-852-1089).
  31.  
  32. Patrick May
  33.