Got you. The other unix script just does sed -ibak  and doesn't worry about the tidy up.