#!/bin/bash
while IFS= read -r url <&3; do
urlstatus=$(curl -o /dev/null --insecure --silent --head --write-out '%{http_code}' "${url}" --max-time 10 ) &&
echo "$url $urlstatus"
done 3<url.txt
cat url.txt | parallel curl -o /dev/null --insecure --head --write-out --max-time 10