Skip to content

Instantly share code, notes, and snippets.

@mazuhl
Created May 12, 2014 07:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mazuhl/a3b91dda886a0f8aee1d to your computer and use it in GitHub Desktop.
Check URL status from input file list
File.foreach('URLS.txt') { |l|
system("curl -sL -w '%{http_code} %{url_effective}\\n' '#{l.chomp}' -o /dev/null")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment