Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rename.py

Rename files by replacing a pattern in their names.

Supports literal string replacement and regex, with dry-run, interactive, and no-overwrite modes.

Usage

rename.py [options] <expression> <replacement> <file>...

Options

Flag Description
-r, --regex Treat expression as a regex
-n, --no-act Dry run — print what would happen
-o, --no-overwrite Skip if the destination already exists
-i, --interactive Prompt before overwriting
-v, --verbose Explain what is being done

Dependencies

Python 3.10+

About

Rename files by replacing a pattern (literal or regex) in their names

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages