I have one file which contain name of mysql tables and its column names. I want to convert into following format
file: example.txt
Table Name | Column Name
ABC | 123
ABC | 345
XYZ | 111
FFF | 222
FFF | 333
FFF | 4444
Output should be
ABC(123,345)
XYZ(111)
FFF(222,333,4444)
Please suggest me some example.