#!/bin/sh # Script by Ypnose - http://ywstd.fr # url http code url_code() { curl \ -Ls \ -m 10 \ -w "%{http_code}" \ -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" \ -o /dev/null \ "$1" } while IFS= read -r UHC_URL; do printf "%s %s\n" "$(url_code "$UHC_URL")" "$UHC_URL" sleep 0.5 done exit