moto_sys
asked on
Replace text
i have a text file with 100 lines
for example:
aa,45,78,79,80,81,82,83,84 ,85,86,88, 14
ab,22,80,99,56,84,85,86,89 ,12
ac,11,78,79,80,81,82,83,84 ,16,72,94, 5,7,14
ad,58,78,79,80,81,82,83,84 ,85,86,88, 14
i want to replace all de 45,51,78,80,90
45 = A1,A11
51 = A2,A22
78 = A3,A33
80 = A4,A44
90 = A5,A55
but maybe need to be more than 5 could be 5 or more
Output
aa,A1,A11,A2,79,A4,A44,81, 82,83,84,8 5,86,88,14
ab,22,80,99,56,84,85,86,89 ,12
ac,11,A3,A33,79,A4,A44,81, 82,83,84,1 6,72,94,5, 7,14
ad,58,A3,A33,79,A4,A44,81, 82,83,84,8 5,86,88,14
i
for example:
aa,45,78,79,80,81,82,83,84
ab,22,80,99,56,84,85,86,89
ac,11,78,79,80,81,82,83,84
ad,58,78,79,80,81,82,83,84
i want to replace all de 45,51,78,80,90
45 = A1,A11
51 = A2,A22
78 = A3,A33
80 = A4,A44
90 = A5,A55
but maybe need to be more than 5 could be 5 or more
Output
aa,A1,A11,A2,79,A4,A44,81,
ab,22,80,99,56,84,85,86,89
ac,11,A3,A33,79,A4,A44,81,
ad,58,A3,A33,79,A4,A44,81,
i
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.