Let\'s suppose I have this variable:
DATE=\"04/Jun/2014:15:54:26\".
DATE=\"04/Jun/2014:15:54:26\"
Therein I need to replace / with \\/ in order to
/
\\/
You can also escape the slashes, with a slightly less readable solution than with hashes:
echo "04/Jun/2014:15:54:26" | sed 's/\//\\\//g'