wget.sh
#!/bin/bash
exec 2>>result.log
for i in {1..100}
do
echo $i
curl -voa https://www.itbunan.xyz/usr/uploads/2022/05/2892940572.png
sleep 1
done
统计成功次数
cat result.log | grep '200 OK' | wc -l
#!/bin/bash
exec 2>>result.log
for i in {1..100}
do
echo $i
curl -voa https://www.itbunan.xyz/usr/uploads/2022/05/2892940572.png
sleep 1
done
cat result.log | grep '200 OK' | wc -l
评论 (0)