Project Detail

perl script to create de-normalized output file  

perl script to create de-normalized output file is project number 151696
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: dims

Budget: $30-100

Created: 06/12/2007 at 11:04 EDT

Bid Count: 11

Average Bid:
$ 36

06/17/2007 at 11:04 EDT

Project Creator: sanjushah
Employer Rating: 9.8571/109.8571/109.8571/109.8571/109.8571/109.8571/109.8571/109.8571/109.8571/109.8571/10 (7 reviews)

Bid On This Project
 

Description

I have a pipe delimited flat file which has 1 record per invoice-number. Per invoice records, there's header section, lines section (repeated multiple times - could go as much as 100 times) and the trailer section - something like this:

HA1|HA2|HA3|L1-1|L1-2|L1-3|L1-4|L2-1|L2-2|L2-3|L2-4|T1|T2|T3
HB1|HB2|HB3|L1-1|L1-2|L1-3|L1-4|L2-1|L2-2|L2-3|L2-4|T1|T2|T3

The output file should like this:
HA1|HA2|HA3|L1-1|T1|T2|T3
HA1|HA2|HA3|L1-2|T1|T2|T3
HA1|HA2|HA3|L1-3|T1|T2|T3
HA1|HA2|HA3|L1-4|T1|T2|T3
HA1|HA2|HA3|L2-1|T1|T2|T3
HA1|HA2|HA3|L2-2|T1|T2|T3
HA1|HA2|HA3|L2-3|T1|T2|T3
HA1|HA2|HA3|L2-4|T1|T2|T3
HB1|HB2|HB3|L1-1|T1|T2|T3
HB1|HB2|HB3|L1-2|T1|T2|T3
HB1|HB2|HB3|L1-3|T1|T2|T3
HB1|HB2|HB3|L1-4|T1|T2|T3
HB1|HB2|HB3|L2-1|T1|T2|T3
HB1|HB2|HB3|L2-2|T1|T2|T3
HB1|HB2|HB3|L2-3|T1|T2|T3
HB1|HB2|HA3|L2-4|T1|T2|T3

For someone with Perl Expertise - this should be pretty st forward script.

The script should be well documented and maintainable and needs to run on Linux. Your work should be guaranteed to work as per requirements :)

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

40

1 day

06-12-2007 11:37 EDT

I can write this Perl script today. Escrow deposit is required, please.

help

 

30

1 day

06-12-2007 23:10 EDT

Can show demo for you

help

 

30

1 day

06-12-2007 19:33 EDT

I am good at perl. I can do it for you today. Escrow deposit is required. Thanks.

help

 

30

1 day

06-12-2007 18:17 EDT

I am a experienced perl programmer. I can do it quickly.Pls check PM.Thanks!

help

 

50

1 day

06-12-2007 13:51 EDT

I am a Perl programmer and can easily do such data transformations

help

 

35

1 day

06-12-2007 13:58 EDT

sanju, what I get from your posting that you want to remove header and trailer from output and convert every other record line of input text file to couple of linea in the output text file. If this is so, a solution that will run on Linux can be cooked up in around an hour (or lesser) assuming it's straightforward to identify the header and trailer records in input text file. The solution can be easily implemented using either of bash/awk/perl scripting.

help

 

60

2 days

06-12-2007 11:20 EDT

(No Feedback Yet)

Hi I have experience with linux environment and perl script.

help

 

30

2 days

06-12-2007 13:03 EDT

(No Feedback Yet)

Hi! Please read PM

help

 

30

1 day

06-12-2007 13:40 EDT

(No Feedback Yet)

I have a similar script done. I will need less than a day to modify it.

help

 

30

1 day

06-12-2007 17:01 EDT

(No Feedback Yet)

i can do it.

help

 

30

1 day

06-12-2007 22:15 EDT

(No Feedback Yet)

sir i can write a script for you

help


    Bid on this Project