|
From: | Doug Stewart |
Subject: | Re: csv read problem |
Date: | Thu, 18 Feb 2016 13:39:24 -0500 |
On Thu, Feb 18, 2016 at 12:38:30 -0500, Doug Stewart wrote:
> Looking at it with ghex shows that there is a 00 between every good byte
> of data.
>
> 49 00 64 00 50 00 72 00 6F 00 76 etc.
>
> If one was to read it in byte by byte and save every second byte to a new
> file , then I think it would work
Confirmed. I think this is a "best tool for the job" case. I would use
sed to clean up the file into a format appropriate for importing into
Octave.
sed 's/[\x0\xd]//g;s/,/./g;s/;/,/g' file > fixed.csv
--
mike
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |