Terminate sed command