I'm working on large files for wikisource, along with another guy. I generate a big text file (a few Mb) witch I format a bit using scripts, then I upload the text to a temporary page, where the other guy does some more formatting.
My friends computer and internet connection are not the best in the market, and he asked me not to upload more than 400Kb of data, so his computer can handle all the text.
the file is formatted like this:
==header 1==
.
.
.
==header 2==
.
.
.
and has a few hundreds of headers.
What I need to do:
I need to yank at most 400Kb (as close as I can to this number), but I also need to yank all the text between headers - I can't have the text between headers to split over a few files.
I can find the next header using \^={2}[^=]+={2}$
, but I don't know how to carry on yanking until I have ~400Kb of data.
Any ideas?