[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: split
From: |
miguel manese |
Subject: |
Re: split |
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øren Hauberg <address@hidden> wrote:
> 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.
>
> I haven't done alot of testing but it should work, and it's much more fast.
>
> /Søren
>
> P.S. If this isn't the right place to post this, then I'm sorry
>
>
>
-------------------------------------------------------------
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
-------------------------------------------------------------
- split, Søren Hauberg, 2005/01/30
- Re: split,
miguel manese <=