Forgot that macosx sed has a slightly different syntax than unix one