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

9f22a1d Β· Aug 20, 2023

History

4 Commits
Aug 20, 2023
Aug 20, 2023
Aug 20, 2023

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages