zmv

Move or rename files matching a specified extended glob pattern.
See also `zcp` and `zln`.
More information.
zmv '{(*).log}' '{$1.txt}'
zmv -n '{(*).log}' '{$1.txt}'
zmv -i '{(*).log}' '{$1.txt}'
zmv -v '{(*).log}' '{$1.txt}'
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY