i have a variable $x having a sample values like isd21anms.com, isd31anms.com etc. Now i want to iterate through for loop to change the no 1 from 1 through 1,2,3 4. Please look below code
for i in 1 2 3 4
do
change $i such that I get values isd21anms.com, isd22anms.com, isd23anms.com, isd24anms.com
done
remember $x can have values like isd21anms.com, isd31anms.com, isd41anms.com. So i have to save it in variable and apply for loop on it instead of using a constant value.
tested below: