replace sed with sed -i