zmv Command Examples

Move or rename files matching a specified extended glob pattern. See also zcp and zln. More information: https://zsh.sourceforge.net/Doc/Release/User-Contributions.html.

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

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

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

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