For example : 3/12/1991 should get converted to 3\/12\/1991.
3/12/1991
3\/12\/1991
That is, I want to replace / with \/ [slash with backslash and slash].
/
\/
sed 's|/|\\/|g', maybe?
sed 's|/|\\/|g'
echo 3/12/1991 | sed 's|/|\\/|g' 3\/12\/1991