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
|
## 🚀 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue