regex - how to do recursive replacement with incremented alphanumeric value in a file using sed/awk/perl -
how can make shell script using sed or awk recursive replacement of same value incremented alphanumeric values , inside again recursive incremented alphanumeric values. should happen till nth value end of file ---input file follow---- <first line has same value testname="tran cont" enabled="true"> <inner first line has url testname="/" enabled="true"> <inner second line has url testname="/test/dui/views?" enabled="true"> <first line has same value testname="tran cont" enabled="true"> <inner first line has url testname="/test/tedi/perf" enabled="true"> <inner second line has url testname="/dest/content/surf" enabled="true"> <inner third line has url testname="/cest/dui/duff" enabled="true"> <first line has same value testname="tran cont" enabled="true"> ...