Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check the multiple url using the unix script..

Status
Not open for further replies.

sathyaraj

Technical User
Mar 8, 2016
1
AU
Hi All,

I am new to unix , i want to check the url exists or not and url status .
kindly help me how to do it

i am using the below one for checking the single url..
curl -s --head | head -n 1

i want to check multiple url in single execution..

i want to get the status report like below when checking the multiple urls

google.com status code 200 and url exsists
yahoolzaa.com status code 400 and url doesnot exist
gmail.com status code 200 and url exists


kindly help me to get the output with status report pls..
 
pipe the output from curl through grep

curl [options] | grep "HTTP/1.1" Chris. Indiffe...[url=http://webmaster-talk.eu]Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top