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 .......
In reply to splitting the bus and print by perl vams
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |