On Solaris, there is no sed -i, so just use sed as a pipe.