Rewrite commands as one-liners