#!/usr/koeki/bin/ruby list = Array.new supported = Array.new open("alist.dat" ,"r") do |r| while line = r.gets if /(c108\d\d\d)/ =~ line list << $1 end end end all = list.uniq for person in all open("info.html", "r") do |data| while line = data.gets if /(#{person})/ =~ line supported << $1 end end end end p rest = all - supported.uniq