mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
45 lines
1.8 KiB
Markdown
45 lines
1.8 KiB
Markdown
# mmv
|
|
[](https://github.com/itchyny/mmv/actions)
|
|
[](https://goreportcard.com/report/github.com/itchyny/mmv)
|
|
[](https://github.com/itchyny/mmv/blob/main/LICENSE)
|
|
[](https://github.com/itchyny/mmv/releases)
|
|
[](https://pkg.go.dev/github.com/itchyny/mmv)
|
|
|
|
Rename multiple files using your `$EDITOR`. The command name is named after _multi-mv_.
|
|
|
|

|
|
|
|
## Usage
|
|
```bash
|
|
mmv file ...
|
|
```
|
|
This command opens the editor with the list of file names so edit and write.
|
|
The command finds the changed lines and renames all the corresponding files.
|
|
|
|
## Installation
|
|
### Homebrew
|
|
```sh
|
|
brew install itchyny/tap/mmv
|
|
```
|
|
|
|
### Build from source
|
|
```bash
|
|
go install github.com/itchyny/mmv/cmd/mmv@latest
|
|
```
|
|
|
|
## Features
|
|
- `mmv` is implemented in Go language and completely portable.
|
|
- `mmv` is designed to be simple as `mv`. It requires no configuration file.
|
|
- `mmv` supports renaming in cycle (`mv a b`, `mv b c` and `mv c a` at the same time).
|
|
- `mmv` creates destination directories automatically. You can arrange pictures like `yyyy-mm-dd xxxx.jpg` to `yyyy/mm/dd/xxxx.jpg`.
|
|
- `mmv` is capable to use as a library (just call `mmv.Rename`).
|
|
- `mmv` is easy to remember (I believe), **m**ulti-**mv**.
|
|
|
|
## Bug Tracker
|
|
Report bug at [Issues・itchyny/mmv - GitHub](https://github.com/itchyny/mmv/issues).
|
|
|
|
## Author
|
|
itchyny (https://github.com/itchyny)
|
|
|
|
## License
|
|
This software is released under the MIT License, see LICENSE.
|