I would like to find and replace sed and replace something in a variable that contains some special characters like & .
For example, I did something like this:
sed "s|http://.*|http://$URL|"
where URL=1.1.1.1/login.php?user=admin&pass=password . I think this has become a problem because I use ? and & in its variable.
How can I search and replace?
Thanks in advance
variables sed
pl0nk001
source share