Hi Geeks,
Have below input file and need the output
Input File
Uber: ABC=Pqrstuv ABC2 abc pqr , G=Pqrstuv Inc, CC=US
Uber: ABC=Indiana (Automobile Business 2119), G=Indiana Group, CC=UK
Uber: EMAIL=indiana@group2020.gc, ABC=indiana 2020 AC, GC=Products and Solutions
Uber: ABC=Gitamo Agencies Depot, GC=Trustme, G=Indiana, CC=IE
Uber: ABC=COMODO ECO Company, G=COMODO AC Limited, L=Salford
Uber: ABC=SW, GC=AXIS, G=TOSO, L=DRID, ST=MADRID, CC=ES
Uber: ABC=Gitamo Agencies Depot, GC=Trustme, G=Indiana, CC=IE
How to get the output like below which is the highlighted part on Input File
- Without any spaces and brackets
2.As Gitamo Agencies Depot occured twice in input file so first value is printed as it is but on next time it appers _1 is appended to it and if agin it appears _2 and so on should be appended
Output File
PqrstuvABC2abcpqr
IndianaAutomobile Business 2119
indiana2020AC
GitamoAgenciesDepot
COMODOECOCompany
SW
GitamoAgenciesDepot_1
Thanks