in reply to Re^3: Parsing Data logger files ...
in thread Parsing Data logger files ...
#!/usr/bin/perl use warnings; use strict; $/ = "\n1="; while (<>) { my @fields = split /\n/; s/^[1-6]=// for @fields; open (MYFILE, '>/a/b/c/perl/dl_parser/logData.txt'); print MYFILE "+(join ',', @fields[0 .. 5]), "\n""; close (MYFILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Parsing Data logger files ...
by Kenosis (Priest) on Oct 07, 2012 at 02:44 UTC | |
by RedTussock (Acolyte) on Oct 07, 2012 at 04:43 UTC | |
by kcott (Archbishop) on Oct 07, 2012 at 05:51 UTC | |
by RedTussock (Acolyte) on Oct 07, 2012 at 06:59 UTC |