Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
/ Renexp Public archive

A simple script to rename files in a folder using regular expressions

License

Notifications You must be signed in to change notification settings

PhilippeCollin/Renexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Renexp

A simple script to rename files in a folder using regular expressions. Does not support recursive searching and renaming at the moment.

Example usage

Input files:

  • 1first1.txt
  • 2second2.png
  • 3third3.exe
  • 4fourth4.py
renexp [--sim] "[1-9]([a-z]*)[1-9](\.[a-z]+)?" "\1\2"

Output files:

  • first.txt
  • second.png
  • third.exe
  • fourth.py

\1 and \2 are equivalent to the usual $1 and $2

Remember to surround the regular expressions with double quotes.

Use the --sim option to simulate the execution before renaming files definitively

About

A simple script to rename files in a folder using regular expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages