I've a input file that calls numbers.txt which contains something like below.
<msisdn>678678678678</msisdn>
<msisdn>456456456456</msisdn>
<msisdn123123123123</msisdn>
and xml files as below
[root@ app]# cat test.xml
<soapenv:Envelope xmlns:soapenv="http://5tu6.com/net/" xmlns:net="http://5tu6.com/net"><soapenv:Header/><soapenv:Body><net:querySubscriberSettingsRequest><requestId>103</requestId><msisdn>25252623</msisdn></net:querySubscriberSettingsRequest></soapenv:Body></soapenv:Envelope>
What I want is, in below while loop, I would like to take each entry from numbers.txt replace it with existing msisdn part in test.xml, increase the requestId +1 in each time. Also in that while loop at the end, run curl command each time as with new entries.
while IFS= read -r line; do
echo "$line"
done < number.txt