mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 12:26:03 +02:00
zmv: add page (#4705)
This commit is contained in:
parent
2a56661112
commit
b3c0007b1c
1 changed files with 21 additions and 0 deletions
21
pages/common/zmv.md
Normal file
21
pages/common/zmv.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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 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}}'`
|
Loading…
Add table
Reference in a new issue