From: William James Date: 2007-08-30T03:10:09+09:00 Subject: Re: Conducting Regular Expressions on a text file On Aug 27, 8:53 pm, "Logan Capaldo" wrote: > Incidentily ruby has a shortcut for doing this: > > ruby -inp -e 'gsub!(/placeholder/, "word")' /folder/template.txt > > To handle those really big files where you simply cannot afford to > have two copies simultaneously, I think that Ruby makes a temporary copy of the file.