A collection of shell scripts for file management and renaming operations.
A smart file renaming script that:
- Converts filenames to ASCII (removes accents)
- Converts to lowercase
- Replaces non-alphanumeric sequences with underscores
- Preserves file extensions
- Creates a log file for potential undo operations
- Supports dry-run mode for testing
Usage:
./simplify [--dry-run] [--log <logfile>] file1 file2 ...A script to revert file renaming operations by:
- Reading a log file created by
simplify - Reverting files to their original names
- Processing operations in reverse order
- Safely handling existing files
Usage:
./undo_rename [--log <logfile>]- Clone the repository:
git clone <repository-url>- Make the scripts executable:
chmod +x simplify undo_rename- Run the scripts:
# To rename files:
./simplify file1.txt file2.jpg
# To undo renaming:
./undo_rename# Basic usage
./simplify "Mon Fichier.txt" "Photo 2023.jpg"
# Dry run to preview changes
./simplify --dry-run "Mon Fichier.txt"
# Custom log file
./simplify --log custom.log "Mon Fichier.txt"# Basic usage (uses default rename.log)
./undo_rename
# Custom log file
./undo_rename --log custom.logContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- 🎯 Smart file renaming with accent removal
- 🔄 Safe undo functionality
- 📝 Detailed logging
- 🧪 Dry-run mode for testing
- 🛡️ Safety checks to prevent data loss
- Bash shell
iconvcommand for character conversiontaccommand for log file reversal- Basic Unix/Linux commands
For detailed documentation, refer to the comments within each script file.