Help on Adding one counter loop at the end of each line in a file

Hello All,
I have file a.txt
I want to add a counter loop at the end of each line in a file
ill explain:
i have a site h**p://test.test=Elite#1
i want to add a a counter to the number at the end of the file, that it will be like this

urlLink//test.test=Elite#1
urlLink//test.test=Elite#2
urlLink//test.test=Elite#3
etc,

and finally the complete list will be saved to a local file
Can any one help me on this?

You say you want to ADD a counter to the end of the file, but you haven't shown us what is in the file to start with.

You imply that a.txt contains:

h**p://test.test=Elite#1

but your output shows usrLink instead of h**p: . And if you wanted to add a counter that would seem to be something more like:

h**p://test.test=Elite#11
h**p://test.test=Elite#12
h**p://test.test=Elite#13

than what you showed us before.

Please explain more clearly what is in a.txt, what you want in your output, and how we are supposed to know when to stop ("etc" with no end point can go on for a LONG time).

Hey,

I allready found the answer, TNX

here it is

#!/bin/bash

for i in {1..113}; do
 echo "h**p://test.test=Elite#$i" >> ~/Desktop/a.txt;
done

Like this ?

$ echo "urlLink//test.test=Elite#1" | awk -F"#" '{for(i=$NF;i<=10;i++){$NF=i;print $0}}' OFS="#" 
urlLink//test.test=Elite#1
urlLink//test.test=Elite#2
urlLink//test.test=Elite#3
urlLink//test.test=Elite#4
urlLink//test.test=Elite#5
urlLink//test.test=Elite#6
urlLink//test.test=Elite#7
urlLink//test.test=Elite#8
urlLink//test.test=Elite#9
urlLink//test.test=Elite#10