Skip to content

Instantly share code, notes, and snippets.

@valrotan
valrotan / mmv.zsh
Created March 8, 2024 09:35
Rename many files at once in your favorite editor (vim)
mmv()
{
OLD=/tmp/current_files
NEW=/tmp/rename_files
# get options
dry='false'
verbose='false'
while getopts 'dvh' flag; do
case "${flag}" in