rewrite sed command