Easily rename multiple files in your directory with a simple command.
- Rename files based on patterns.
- Dry-run mode to preview changes without renaming.
- Supports deep directory traversal.
- Clone the repository:
git clone https://github.com/yourusername/renOmer.git
- Make the script executable:
chmod +x renOmer.sh
- Run the script:
./renOmer.sh <search_pattern> <replace_pattern>
For a dry-run:
./renOmer.sh --dry-run <search_pattern> <replace_pattern>
- Basic Rename:
- Files before:
Alpha100.mkv, Alpha101.mkv
- Command:
./renOmer.sh Alpha Beta
- Files after:
Beta100.mkv, Beta101.mkv
- Partial Rename:
- Files before:
fileA.txt, fileB.txt, fileC.txt
- Command:
./renOmer.sh file doc
- Files after:
docA.txt, docB.txt, docC.txt
- Dry-Run Mode:
- Files before:
sun.jpg, moon.jpg
- Command:
./renOmer.sh --dry-run sun star
- Output:
🔍 [DRY-RUN] Would rename: ./sun.jpg -> ./star.jpg
- Files after:
sun.jpg, moon.jpg
(No change due to dry-run)
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.