Д
Size: a a a
Д
U
Д
AK
AK
U
U
Д
Д
AK
U
AK
U
AK
U
Н
Н
Н
Н
#!/bin/bash
function check_url() {
URL_FILE=$1
[ ! -f $URL_FILE ] && { echo "$URL_FILE file not found"; exit 99; }
while read url
do
STATUS=$(curl -s -o /dev/null -w '%{http_code}' $url)
echo $STATUS
if [ $STATUS -ge 400 ]; then
exit 1
fi
done < $URL_FILE
}
check_url $1