Preview the result of a move, without making any actual changes

zmv

  • Move or rename files matching a specified extended glob pattern.
    See also `zcp` and `zln`.
    More information: <http://zsh.sourceforge.net/Doc/Release/User-Contributions.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

zmv -n '{{(*).log}}' '{{$1.txt}}'

click the source code to copy