From: Keith Fahlgren Date: 2005-07-29T01:35:13+09:00 Subject: Re: Sed -> Ruby : .. and ... On Thursday 28 July 2005 11:25 am, Joel VanderWerf wrote: > $ ruby -p -e 'gsub(/bar/, "BAR")' test Ah, I should have mentioned that I'm trying to replace 4000+ lines of sed rather than just one. So, the one-liner approach is probably not the best in this case. Thanks for the reminder on ARGF.each, Keith