Skip to content

Instantly share code, notes, and snippets.

@mazuhl
Created May 12, 2014 07:59
Show Gist options
  • Save mazuhl/a3b91dda886a0f8aee1d to your computer and use it in GitHub Desktop.
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