perl vams has asked for the wisdom of the Perl Monks concerning the following question:
I have a txt file which contains list of ports for ex: ex.txt file has the content as
i want in the ouput as where ever bus is there like 15:0abc, it has to split and print as below:-[15:0]abc [31:0]def ghi jkl [3:0]mno [61:0]pqr stu etc ------
abc[0] abc[1] abc[2] .......... abc[15] def[0] def[1] .......... def[31] ghi jkl .......
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting the bus and print
by 1nickt (Canon) on Apr 19, 2016 at 12:12 UTC | |
|
Re: splitting the bus and print
by AnomalousMonk (Archbishop) on Apr 19, 2016 at 16:47 UTC | |
|
Re: splitting the bus and print -- oneliner
by Discipulus (Canon) on Apr 19, 2016 at 19:41 UTC | |
by perl vams (Initiate) on Apr 26, 2016 at 11:48 UTC | |
by Discipulus (Canon) on Apr 27, 2016 at 07:16 UTC |