rohan.mohapatra47 has asked for the wisdom of the Perl Monks concerning the following question:
My input file is somewhat like this
CC225|Rosha|xyz|2221|b1 CC225|Rosha|xyz|2230|b1 CC225|Rosha|xyz|2221|b1 CC225|Rosha|xyz|2221|b1 CC225|Roshw|xyz|2222|b2 CC225|Roshw|xyz|2230|b2 CC222|Roqsha|xyz|2222|b1 CC222|Roqsha|xyz|2244|b1 CC222|Roqsh|xyz|2221|b2 CC222|Roqsh|xyz|2111|b2
Output will be
CC225|b1|4|Rosha CC225|b2|2|Roshw CC222|b1|2|Roqsha CC222|b2|2|Roqsh
It counts ID on the basis of batches & prints it.
Can someone help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting ID on the basis of batch
by Discipulus (Canon) on Sep 23, 2016 at 07:05 UTC | |
by AnomalousMonk (Archbishop) on Sep 23, 2016 at 17:50 UTC | |
|
Re: Counting ID on the basis of batch
by tybalt89 (Monsignor) on Sep 23, 2016 at 14:25 UTC | |
by Discipulus (Canon) on Sep 23, 2016 at 20:07 UTC |