Le 29 septembre ? 21:50, Joel VanderWerf a ?crit : > F. Senault wrote: >> File.open("script.rb") do |fichier| >> fichier.each do |ligne| >> if ligne.downcase.include? "ruby" >> puts ligne >> end >> end >> end >> >> File.open("script.rb") do |f| >> f.each { |l| puts l if l=~/ruby/i } >> end > > It's worth mentioning this, too: > > puts `grep -i ruby script.rb` Yep, nice addition ! Fred -- I don't know who you are, But you seem very nice So will you talk to me? Shall I tell you a story, Shall I tell you a dream? They think I'm crazy. (K's Choice, Everything for free)