Skip to content

Easily rename multiple files in your directory with a simple command.

License

Notifications You must be signed in to change notification settings

Phr33d0m/renOmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🔄 renOmer

Easily rename multiple files in your directory with a simple command.

🌟 Features

  • Rename files based on patterns.
  • Dry-run mode to preview changes without renaming.
  • Supports deep directory traversal.

🚀 Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/renOmer.git
  1. Make the script executable:
chmod +x renOmer.sh
  1. Run the script:
./renOmer.sh <search_pattern> <replace_pattern>

For a dry-run:

./renOmer.sh --dry-run <search_pattern> <replace_pattern>

📌 Examples

  1. Basic Rename:
  • Files before: Alpha100.mkv, Alpha101.mkv
  • Command: ./renOmer.sh Alpha Beta
  • Files after: Beta100.mkv, Beta101.mkv
  1. Partial Rename:
  • Files before: fileA.txt, fileB.txt, fileC.txt
  • Command: ./renOmer.sh file doc
  • Files after: docA.txt, docB.txt, docC.txt
  1. 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)

🤝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

📜 License

MIT