Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. while read url
  2. do
  3. urlstatus=$(curl -o /dev/null --silent --head --write-out '%{http_code}' "${url}" --max-time 5 )
  4. echo "$url $urlstatus" >> urlstatus.txt
  5. done < $1
  6.  
  7. Input file is txt file and lines are separated as
  8. ABC.Com
  9. Bcd.Com
  10. Any.Google.Com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement