CLIRenamerename rename is a command to rename based on regex. rename 's/.odt.md/.md/' *.odt.md Use the -n flag to dry run Format DriveClean