I am measuring performance of different URL's that are stored in a file
while read line do echo $line #content printed here fine curl -w "@curl-format.txt" -o /dev/null -s $line done < url.txt
But the curl command returns time_total = 0.00000s as if it is not working properly.
Used this command to remove carriage returns from the file.
tr -d '\r' < url.txt > new_url.txt
Then used new_url.txt in the code and it works now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.