| Number of watchers on Github | 26 |
| Number of open issues | 0 |
| Main language | Ruby |
| Open pull requests | 0+ |
| Closed pull requests | 0+ |
| Last commit | about 7 years ago |
| Repo Created | about 7 years ago |
| Repo Last Updated | over 2 years ago |
| Size | 101 KB |
| Organization / Author | junegunn |
| Contributors | 1 |
| Page Updated | 2018-03-20 |
| Do you use mvmv? Leave a review! | |
| View mvmv activity | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
Simple batch renaming script.
$ gem install mvmv
usage: mvmv [OPTIONS] <command> [<args>] <files>
commands:
mvmv prefix <prefix> <files>
mvmv suffix <suffix> <files>
mvmv name <name> <files>
mvmv name-suffix <suffix> <files>
mvmv ext <.extension> <files>
mvmv upper <files>
mvmv lower <files>
mvmv regexp <from> <to> <files>
mvmv regexpi <from> <to> <files>
mvmv name-regexp <from> <to> <files>
mvmv name-regexpi <from> <to> <files>
options:
-f, --force Force rename
--no-color Disable ANSI color codes
mvmv prefix old_ *.txt
mvmv suffix .bak *.txt
You can attach sequence numbers to files with a series of #s.
Depending on the number of #s, numbers will be padded with zeros.
mvmv name Photo#### *.jpg *.gif *.png
mvmv name-suffix -## *.jpg
regexp command performs regular expression substitutions. (regexpi is the case-insensitive version.)
name-regexp command performs regular expression subsitution only on the name parts of the given files.
mvmv name-regexp '^(.*)_-_(.*)$' '\2 - \1' *.mp3