mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 08:52:58 +00:00
Update cheatsheets
This commit is contained in:
26
zmv
Normal file
26
zmv
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- 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}}'`
|
||||
Reference in New Issue
Block a user