zmv
Move or rename files matching a specified extended glob pattern. See alsozcp
andzln
. More information: http://zsh.sourceforge.net/Doc/Release/User-Contributions.html.
-
Move files using a regular expression-like pattern:
zmv '{{(*).log}}' '{{$1.txt}}'
-
Preview the result of a move, without making any actual changes:
zmv -n '{{(*).log}}' '{{$1.txt}}'
-
Interactively move files, with a prompt before every change:
zmv -i '{{(*).log}}' '{{$1.txt}}'
-
Verbosely print each action as it's being executed:
zmv -v '{{(*).log}}' '{{$1.txt}}'
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.