Replaced SED with TR for OSX compliance