Shalmaneser has asked for the wisdom of the Perl Monks concerning the following question:
I need to concatenate records that match the first field - it's delimited by space. Data is sorted and can have instances of 1-5 records to be concatenated. I.E.https://www.dropbox.com/s/hj6myrr9yqk5uu7/data.txt?dl=0
I speak UNIX C and Progress RDBMS but am curious about Perl's abilities. Invoking the code can be as simple as type infile > perl proc.pl > outfile or perl proc.pl infile outfile dealer's choice, but flexibility is valued.123 abc 123 32434 123 sdfd becomes 123 abc 123 32434123 sdfd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Concatenate records
by toolic (Bishop) on Dec 23, 2014 at 03:17 UTC | |
|
Re: Concatenate records
by GrandFather (Saint) on Dec 23, 2014 at 06:17 UTC |