A replacement for zsh's zmv.
USAGE:
mvr <old pattern> <new pattern>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<old pattern> Use braces to indicate groups
Use question marks to match a single character
Use asterisks to match any amount of characters
<new pattern> Use $n to insert a matched group (0-based)
Input:
├── foo_01.md
├── foo_01.txt
└── foo_02.txt
Command:
mvr '*_(??).(*)' '$0.$1'
Output:
├── 01.md
├── 01.txt
└── 02.txt