There used to be a nifty little utility I used for this kind of thing, but the below works just as well:
find ./ -type f | xargs sed -i 's|http://domain.com|../relative/path/or/whatever|g'
grep and other utilities,
sed can take different characters to represent the division between fields. Above I used the pipe (“|”) as opposed to the standard slash found in most examples.