title: Script to get the HTTP status code of a list of urls?
body: <p>I have a list of URLS that I need to check, to see if they still work or not. I would like to write a bash script that does that for me.</p>
  
  <p>I only need the returned HTTP status code, i.e. 200, 404, 500 and so forth.  Nothing more.</p>
  
  <p><em>EDIT</em> Note that there is an issue if the page says "404 not found" but returns a 200 OK message. It's a misconfigured web server, but you may have to consider this case.</p>
  
  <p>For more on this, see <a href="https://stackoverflow.com/questions/6439993/check-if-a-url-goes-to-a-page-containing-the-text-404">Check if a URL goes to a page containing the text &quot;404&quot;</a></p>