add curl
This commit is contained in:
parent
d15ecb3956
commit
f4f670ce0c
1 changed files with 22 additions and 7 deletions
29
README.md
29
README.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue