#!/bin/bash # loop forever for ((;;)) do # print a same-line dot echo -e ".\c" # fetch the given URL and append the response to a txt file curl $1 -w " (%{time_total}s) \n" >> data.txt 2>/dev/null done