Created
February 4, 2009 10:20
-
-
Save timmow/58050 to your computer and use it in GitHub Desktop.
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
# For all files in urls.txt, check if the url loads correctly, and print it and the error message if # not | |
cat urls.txt | ruby -nle 'require "open-uri"; begin; open($_) {} rescue print $_ + " : " + $!; end' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment