Splitting up a large text file with 'seek relative'

Joseph Devlin bdrunrev at gmail.com
Thu Jun 19 15:02:56 EDT 2008


Hi Hugh,

I've never used Rev for this kind of file I/O (in fact, I was surprised to
see that Rev has something like 'seek relative').  Anyway, if you are doing
this on a OS X or Linux box, why not use the 'split' command in a terminal
window - I've successfully used it before splitting up files that were
several gb long.  Using shell with something like that ought to be much
quicker and easier to do.  Of course, I'm also interested to see how this
works out if someone does have experience using 'seek relative' and chimes
in to help  ;-)

Bernard

On Thu, Jun 19, 2008 at 7:26 PM, Hugh Senior <FlexibleLearning at tiscali.co.uk>
wrote:

> I need to split large (1 Gig) log files for a client into more managable
> chunks. The routine works fine, then (apparently) starts to slow down. I
> suspect that I have not implemented 'seek' correctly, and that the file is
> being read from zero each time, but would appreciate



More information about the use-livecode mailing list