Usually if I have to replace a character in a string I used the sed /s/ command. However, I am having some difficulty in doing the same thing when I have the following string in a variable in my shell script and I need to replace all the forward slashes ("/") to backslashes ("\"). For example, this is what I am doing:
Code:
URL=<\\\\software\\projects\\new development\\code\PartA/release/DEV-0.01_RC1/>
echo $URL | sed 's/\/\/g'
sed: -e expression #1, char 7: unterminated `s' command
Not sure how to escape the slashes in this case.