From help-request at octave dot org Sun Jan 30 22:12:07 2005 Subject: Re: split From: miguel manese To: =?ISO-8859-1?Q?S=F8ren_Hauberg?= Cc: help at octave dot org Date: Mon, 31 Jan 2005 12:14:19 +0800 The right tool for the right job (TM). Octave is definitely not the right tool for this (looping is notorious, as with matlab or R), you should use external utilities. in perl, to split by white spaces # perl -aF"\s" -ne 'print "$F[0]\n";' < input then just read the splitted stuff (iirc octave can interface with the shell= too) jon On Sun, 30 Jan 2005 15:55:45 +0100, S=F8ren Hauberg wro= te: > Hi > I'm starting to do some work with rather large text files (5mb and > above) using the split function. On my slow laptop this isn't possible > because split is too slow (it takes hours) so I've altered the split > function to make it faster. I've attached my implementation. >=20 > I haven't done alot of testing but it should work, and it's much more fas= t. >=20 > /S=F8ren >=20 > P.S. If this isn't the right place to post this, then I'm sorry >=20 >=20 > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------