How can I open a file and search for a word inside it using Ruby?
File.readlines(file).each {|l| l.grep(/#{exp_search}/).each {|r| puts file + ' : ' + r}}