Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while read url
- do
- urlstatus=$(curl -o /dev/null --silent --head --write-out '%{http_code}' "${url}" --max-time 5 )
- echo "$url $urlstatus" >> urlstatus.txt
- done < $1
- Input file is txt file and lines are separated as
- ABC.Com
- Bcd.Com
- Any.Google.Com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement