I have a huge SQL file that gets executed on the server. The dump is from my machine and in it there are a few settings relating to my machine. So basically, I want every occurance of "c://temp"
to be replace by "//home//some//blah"
How can this be done from the command line?
The
sed
command can do that. Rather than escaping the slashes, you can choose a different delimiter (_ in this case):