Hi,
I am getting an issue when using  [sed -i.bak "s/localhost/$ip/"   filepath] it is not able to replace the ip value in the concerned file.

Thanks 
Anurag kumar