Rather than having the output write the line unless it equals
search_text, I need it to write when it equals search_text. I know that
should be easy, but I can't find the syntax.

outfile.write(line) unless line =~ search_text

-- 
Posted via http://www.ruby-forum.com/.