From: bobx@... (Bob) Date: 2002-03-21T23:25:54+09:00 Subject: Fastest way to do this? I am using 1.6.6 <-- was this the version that did have the slow file problem? # create a file to append data found from the input file logfile = File.open(ARGV[1], "w+") # search for a word and print the entire line File.open(ARGV[0]) { |file| file.each_line { |line| if /jabberwock/i =~ line # keywords to search for print line # let the lines print to console logfile.write line # also print to file end } } # visual clue script is done puts "Finished processing file..." I have a Python script that does the same thing but is about 10 times faster.