RE: Files manipulation

2007-03-27 Thread José Pedro Silva Pinto
First option should be better, because it is faster to implement, and run faster. But open file using perl language and make changes using s operator, should be faster too. The best way to choose should be make a test using two methods (using time unix command before ask perl script to verify t

Re: Files manipulation

2007-03-27 Thread Tom Phoenix
On 3/27/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: What's the more fast ? 1) perl -pi -e 's/foo/bar/g' file.txt 2) open the file and make modifications What happens when you time both programs? It may be that the answer for me with my data on my hardware is different than the answer for