English | 中文
Files downloaded from Z-Library often contain (Z-Library) in their filenames, making them unnecessarily long and less readable. This tool is a Bash script designed to batch remove the (Z-Library) portion from filenames.
rm_zlib.sh is a Bash script that automatically scans the current directory and its subdirectories for filenames containing (Z-Library) and removes this portion from the filenames.
- Automatically scans directory tree for filenames containing
(Z-Library) - Displays progress bar and statistics
- Supports safe rename operations
- Provides detailed success/failure reports
- Place the script in the target directory
- Grant execute permission:
chmod +x rm_zlib.sh
- Run the script:
./rm_zlib.sh
⏳ Scanning file system...
------------------------------------------------
Z-Library Filename Cleanup Tool started!
📂 Found 15 items to process
------------------------------------------------
🚀 Continue? [Y/n] y
| [■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■] 1/15 ✅ Success: example_file(Z-Library).txt...
Processing complete! 🎉
-----------------------
Total time: 3 seconds
Statistics:
✅ Success: 15
❌ Failure: 0
📂 Total: 15
-----------------------
- Support custom search paths
- Support custom search patterns
- Support custom rename patterns
- Bash (version 4.0+)
- Common Unix tools:
find,mv,sed,tput
- Please ensure to back up important files before running the script
- The script does not modify file contents, only renames filenames
- Works on most Unix/Linux systems
Contributions and feature extensions are welcome. Please participate by creating pull requests or submitting issues.
- v1.0.0 Initial version