Use tr instead of sed for compability on GNU/Linux and Mac OS X.