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
### Fetch the script
```bash
# Clone the repo
git clone https://github.com/yourname/yourrepo.git
cd yourrepo
curl -fsSL -o rename_safe.sh https://git.r21.io/primemover/rename_safe/raw/branch/master/rename_safe.sh
```
# Make the script executable
### Make the script executable
```bash
chmod +x rename_safe.sh
```
# Dry run (test mode)
### Dry run (test mode)
```bash
./rename_safe.sh --dry-run /path/to/files
```
# Actual renaming
### Actual renaming
```bash
./rename_safe.sh /path/to/files
```
@ -33,8 +38,18 @@ chmod +x rename_safe.sh
## 🧪 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
# Run validation tests
./test_rename.sh
```