I have a sql file of a wordpress database. I am moving to another server which the document root is different.
The old document root was /home/saeid/public_html
The new document root is /home/saeid/www/domain.com/html
I want to replace all the occurrences of old path with new path.
I have seen this example which replaces foo with bar...but as I want to replace path which itself has "/" characters in it...I am not sure if it would the job. sed -i -e 's/foo/bar/g' filename