Skip to content

Instantly share code, notes, and snippets.

@timmow
Created February 4, 2009 10:20
Show Gist options
  • Save timmow/58050 to your computer and use it in GitHub Desktop.
Save timmow/58050 to your computer and use it in GitHub Desktop.
# 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