sarath92 has asked for the wisdom of the Perl Monks concerning the following question:
I have a text file as following:
-----------------------------
China:wd:2
Japan:wd:6
China:sg:2
Japan:sg:10
China:kng:70
Thailand:kng:6
------------------------------
I want to get output as follows and need to write the output to another file:
China:2:2:70
Japan:6:10
Thailand:6
How can I get this done?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading from text file
by NetWallah (Canon) on Mar 23, 2018 at 05:52 UTC | |
by jwkrahn (Abbot) on Mar 23, 2018 at 06:27 UTC | |
|
Re: Reading from text file -- plain english approach
by Discipulus (Canon) on Mar 23, 2018 at 08:26 UTC | |
|
Re: Reading from text file
by thanos1983 (Parson) on Mar 23, 2018 at 10:19 UTC | |
by Marshall (Canon) on Mar 23, 2018 at 16:49 UTC | |
|
Re: Reading from text file
by tybalt89 (Monsignor) on Mar 23, 2018 at 17:25 UTC | |
|
Re: Reading from text file
by Anonymous Monk on Mar 23, 2018 at 12:40 UTC |