From b3c0007b1c7164bd70e700b0824071864bdaa39e Mon Sep 17 00:00:00 2001 From: hrai <4055444+hrai@users.noreply.github.com> Date: Fri, 4 Dec 2020 02:55:36 +1100 Subject: [PATCH] zmv: add page (#4705) --- pages/common/zmv.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/zmv.md diff --git a/pages/common/zmv.md b/pages/common/zmv.md new file mode 100644 index 000000000..291ecf78b --- /dev/null +++ b/pages/common/zmv.md @@ -0,0 +1,21 @@ +# zmv + +> Move or rename files matching a specified extended glob pattern. +> See also `zcp` and `zln`. +> More information: . + +- Move files using a regex-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}}'`