I want to run a simple command of replacing absolute paths to relative ones inside a CSS file like this:
sed -i \'s/\\/fonts/../fonts/\' /Users/sergeybasharo
I was having a similar issue. You can install the GNU version of sed in your Mac, called gsed, and use it using the standard Linux syntax.
For that, install gsed using ports (if you don't have it, get it at http://www.macports.org/) by running sudo port install gsed. Then, you can run gsed -i 's/old_pattern/new_pattern/g' *