Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
/ mmv.sh Public archive

Interactively rename files with your favorite editor

Notifications You must be signed in to change notification settings

mcauley-penney/mmv.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

mmv

Allows you to rename files interactively using $EDITOR. Inspired by itchyny/mmv. mmv_basic_change

goal

I like itchyny/mmv a lot but didn't want to have to have Go on my machine to compile it. I decided that I wanted that functionality to be in a language that my machine was more likely to understand immediately upon a new install, so I attempted to reimplement those features in Bash.

comparison with itchyny/mmv functionality

This implementation lacks more checks than it possesses. For example, it does not check for duplicate inputs. I typically don't make the mistake of passing it duplicate inputs, so it's not something I wanted to worry about.

use

  • mmv <filename1> ...
  • mmv <common substring>*
  • mmv *

behavior

This implementation of mmv can:

  • swap file names

mmv_swap

  • appropriately nest items

nesting

install

git clone https://github.com/McAuleyPenney/mmv.git ~/.config/mmv
printf "\n# source mmv\n. ~/.config/mmv/mmv.sh\n" >> ~/.bashrc
  • or just copy and paste the script into the shell functions you already source

requirements

  • bash 4.0 or greater for associative array support

About

Interactively rename files with your favorite editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages