Created
May 12, 2014 07:59
-
-
Save mazuhl/a3b91dda886a0f8aee1d to your computer and use it in GitHub Desktop.
Check URL status from input file list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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