You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
333 B
Bash
14 lines
333 B
Bash
#!/bin/bash
|
|
data=$(cat proxies.txt)
|
|
rm -rf result.log
|
|
for url in $data; do
|
|
if [[ $url == https://raw.githubusercontent.com* ]]; then
|
|
echo "$url" >> result.log
|
|
else
|
|
code=$(curl --connect-timeout 10 -o /dev/null -k -s -w %{http_code} $url)
|
|
if [ "000" != "$code" ]; then
|
|
echo "$url" >> result.log
|
|
fi
|
|
fi
|
|
done
|