This might be very simple but I am stuck at getting this done in shell/bash.
I have input like "a/b/c/d" and I want to replace all '/' with '\/' and the output would be 'a/b/c/d'
another example is 12.12.12.12/32 >>> 12.12.12.12\/32
Any help would be appreciated.
`...`sedis it?sed "s#$foo#$bar#g"