LinuxCommandLibrary

mmv

TLDR

Rename with pattern

$ mmv '[*.txt]' '#1.bak'
copy
Move files
$ mmv '[dir1/*.c]' 'dir2/#1.c'
copy
Lowercase filenames
$ mmv '[*]' '#l1'
copy
Preview changes
$ mmv -n '[*.JPG]' '#1.jpg'
copy
Force overwrite
$ mmv -o '[*.old]' '#1.new'
copy

SYNOPSIS

mmv [options] from to

DESCRIPTION

mmv mass moves and renames files. It uses patterns to transform filenames.
The tool handles complex renaming operations. Supports wildcards and transformations.
mmv renames files by pattern.

PARAMETERS

FROM

Source pattern.
TO
Target pattern.
-n
Dry run (no execute).
-o
Overwrite existing.
-v
Verbose output.
--help
Display help information.

CAVEATS

Different pattern syntax. Preview first. Powerful but complex.

HISTORY

mmv was created for mass file renaming using pattern matching and substitution.

SEE ALSO

rename(1), mv(1), prename(1)

Copied to clipboard