Skip to content

Instantly share code, notes, and snippets.

@zunda
Created May 9, 2012 05:11
Show Gist options
  • Save zunda/2642013 to your computer and use it in GitHub Desktop.
Save zunda/2642013 to your computer and use it in GitHub Desktop.
https://gist.github.com/2641479 の速度重視型
require "open-uri"
lookfor = Regexp.new("(?:#{ARGV.map{|s| Regexp.escape(s)}.join('|')}).*:", Regexp::IGNORECASE)
%w(
http://pastebin.com/raw.php?i=Kc9ng18h
http://pastebin.com/raw.php?i=vCMndK2L
http://pastebin.com/raw.php?i=JdQkuYwG
http://pastebin.com/raw.php?i=fw43srjY
).each do |url|
open(url).each_line do |line|
if line =~ lookfor
puts line.chomp
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment