This commit is contained in:
first 2025-07-20 19:59:19 +00:00
parent d15ecb3956
commit f4f670ce0c

View file

@ -14,18 +14,23 @@ A Bash script to rename files in a directory by removing unsafe characters, hand
## 🚀 Usage ## 🚀 Usage
### Fetch the script
```bash ```bash
# Clone the repo curl -fsSL -o rename_safe.sh https://git.r21.io/primemover/rename_safe/raw/branch/master/rename_safe.sh
git clone https://github.com/yourname/yourrepo.git ```
cd yourrepo
# Make the script executable ### Make the script executable
```bash
chmod +x rename_safe.sh chmod +x rename_safe.sh
```
# Dry run (test mode) ### Dry run (test mode)
```bash
./rename_safe.sh --dry-run /path/to/files ./rename_safe.sh --dry-run /path/to/files
```
# Actual renaming ### Actual renaming
```bash
./rename_safe.sh /path/to/files ./rename_safe.sh /path/to/files
``` ```
@ -33,8 +38,18 @@ chmod +x rename_safe.sh
## 🧪 Test Script ## 🧪 Test Script
### Fetch the script
```bash
curl -fsSL -o test_rename.sh https://git.r21.io/primemover/rename_safe/raw/branch/master/test_rename.sh
```
### Make the script executable
```bash
chmod +x test_rename.sh
```
### Run validation tests
```bash ```bash
# Run validation tests
./test_rename.sh ./test_rename.sh
``` ```