'rewrite' cmd