The command I whipped up is, by definition, a one-liner meant for situations where the file movement is known by the person wishing to perform it and done interactively.<p>As to the portability of it, yes this is not portable as the syntax relies on substitution syntax supported by a limited number of Unix shells (bash and ksh spring to mind, others may support it too though).<p>Since the OP specifically mentioned:<p><pre><code>  mv foo.bar foo.baz
</code></pre>
And you pointed out CMD&#x27;s &#x27;ren&#x27; command, the incantation I put forth seemed apropos.  YMMV.