I was like trying to replace a string in a file with the url present in another file using sed command. for example... let url.txt be the file that contains url:
https://stackoverflow.com/questions/1483721/shell-script-printing-contents-of-variable-containing-output-of-a-command-remove
and demo.txt contains
Replace_Url
the sed command I used is:
sed -i "s/Replace_Url/$(sed 's:/:\\/:g' url.txt)/" demo.txt
there comes no error but the string hasn't been replaced..