emadmahou has asked for the wisdom of the Perl Monks concerning the following question:
IMB,060410,V1 ,371094378,371096338,1961
IMB,060410,V1 ,371096340,371096486,147
IMB,107951,V1 ,981157588,981164939,7352
IMB,107951,V1 ,981164941,981165606,666
IMB,107951,V1 ,981165608,981175100,9493
IMB,107951,V1 ,981175102,981176199,1098
I have a script that create these lines for me from an input file my problem is in the first line the range is from 371094378,371096338
In the second line the range start after two numbers 371096340
I am trying to get these outputIMB,060410,V1 ,371094378,371096486
This one is the combined of the first two line with the min value and the max valueIMB,107951,V1 ,981157588,981176199,1098
this one is the combined of the other value with min value and max The unique identifier is "060410" and "107951" any help please?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combined lines from a file into one
by GrandFather (Saint) on Aug 04, 2015 at 20:47 UTC | |
by emadmahou (Acolyte) on Aug 04, 2015 at 22:04 UTC | |
|
Re: Combined lines from a file into one
by Anonymous Monk on Aug 04, 2015 at 22:50 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 14:38 UTC | |
by poj (Abbot) on Aug 05, 2015 at 15:15 UTC | |
by Anonymous Monk on Aug 05, 2015 at 15:35 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 15:46 UTC | |
by poj (Abbot) on Aug 05, 2015 at 15:55 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 16:03 UTC | |
by poj (Abbot) on Aug 05, 2015 at 16:40 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 16:45 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 17:31 UTC | |
by poj (Abbot) on Aug 05, 2015 at 17:54 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 15:44 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 16:00 UTC | |
|
Re: Combined lines from a file into one
by poj (Abbot) on Aug 05, 2015 at 08:05 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 14:22 UTC | |
by emadmahou (Acolyte) on Aug 05, 2015 at 14:23 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |