11 lines
283 B
Bash
Executable File
11 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Fetch file and extract strings between quotes that look like URLs
|
|
mapfile -t links < <(
|
|
curl -fsSL "https://gitamin.ir/smx/irs/raw/branch/main/docker-registeries.md" \
|
|
| grep -oP '"\Khttps?://[^"]+' \
|
|
| sed 's|^https://||'
|
|
)
|
|
|
|
# Verify
|
|
printf '%s\n' "${links[@]}" |