I did not try it with multibyte characters, but you can split the file based on the number of lines, use -l argument. (there is also a command "csplit", that split using different criteria (like regex) you can check it)
2009/7/11 Al-Faisal El-Dajani <[email protected]> > split command seems like a good solution. Would it still work properly if > the file contains multi-byte characters? > > vim, never managed to get the idea behind that editor. maybe I should give > it another try :( > > > On Sat, Jul 11, 2009 at 12:53 PM, Issa Mahasneh <[email protected]> wrote: > >> Hi >> >> If the file is too big you can split it to multiple files using split >> command: >> >> *split test.txt -b 10000000* >> >> will split test.txt to multiple files each one of maximum size = 10000000 >> bytes.. >> >> anyway, I've opened larger files with vim and never had significant >> problems >> >> >> >> 2009/7/11 Al-Faisal El-Dajani <[email protected]> >> >> Greetings all, >>> >>> I am trying to edit a rather large file (300+ MBs). Whenever I try to >>> open it up with emacs it refuses because file exceeds buffer size. Trying to >>> open it in textmate or other text editors takes forever (if at all), and the >>> machine is mostly unusable. So, my question would be, how do you edit large >>> files? Any special editors or commands that might help? >>> >>> thanks in advance >>> -- >>> Al-Faisal El-Dajani >>> >>> >>> >> >> >> > > > -- > Al-Faisal El-Dajani > > > > --~--~---------~--~----~------------~-------~--~----~ ### Jordan Linux Users Group ### http://Jolug.org/ http://groups.google.com/group/Jolug ### Ubuntu Jordan LoCo Team ### https://wiki.ubuntu.com/JordanTeam http://lists.ubuntu.com/ubuntu-jo ### Ojuba Linux ### http://ojuba.org/ ### Jordan PHP ### http://groups.google.com/group/JoPHP -~----------~----~----~----~------~----~------~--~---

