sed conversions from gnu