# Run with 'curl http://pastie.caboo.se/pastes/113369.txt |ruby "http://(www\.)?bash\.org/[^\s]+"'
#
Code
require 'set'
matches = Set.new
Dir.glob("*").each do |f|
File.readlines(f).each do |l|
if l =~ %r{(#{ARGV.shift})}
matches << $1
end
end
end
puts matches.to_a.sort