This should do the trick with sed..