[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] More data code pointers.



Also, if anyone has ideas on processing the below line.....

taking this and split and use it.

the code written takes the fieldname cond value.

My thoughts are to build arrays splitting on the (),or, and

/condition include_1 (f7 ne 'CE' and f10 ne 'R' and f1 ne 'CE' and
                      f8 ne 'LG' and f8 ne 'LI' and f8 ne 'LJ' and
                      f8 ne 'LR' and f8 ne 'LU' and f8 ne 'LV' and
                      f8 ne 'TL' and f8 ne 'TA' and
                     (f4 eq 'E' or f4 eq 'G' or f4 eq 'W'))


I'm working on a routine now, but if someone has done something like this already........

--
Jay Swackhamer
Reboot The User
402-933-6449
http://www.reboottheuser.com
http://www.cafepress.com/rtu
http://stores.ebay.com/RebootTheUser
http://www.hotr.com


Quoting Jay Swackhamer <Jay@RebootTheUser.com>:

I split the input file, and put it all in a tgz at

http://www.hotr.com/files/dev/test_syncsort.tgz
contents:
infile.dat
outfile.dat
syncsort
syncsort_parm.srt

the syntax would be
./syncsort <  syncsort_parm.srt

The subroutine i'm working on is do_summarize

disclamer:first perl program, just using what works, and cleaning up
later......


--
Jay Swackhamer
Reboot The User
402-933-6449
http://www.reboottheuser.com
http://www.cafepress.com/rtu
http://stores.ebay.com/RebootTheUser
http://www.hotr.com


Quoting Jay Hannah <jay@jays.net>:

On Feb 18, 2010, at 10:18 AM, Jay Swackhamer wrote:
So what I need some insight on, is the correct way to
1. read in a line, where you dont know the length.
2. Pull specific fields out of the line that may need to be unpacked or convert
3. add the fields and put them back into the line, packed
4. write the line back to the file.

Can you throw a small example input file and whatever you've written so far on github.com or somewhere so we can see it?

j


_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm




_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm