This works on Mac; the other sed didn't.