which is best searching option

Hi,

I need one help for choosing best option among sed, perl and awk.
I need to search and replace thousand files for a text and need to replace it. I am in confusion for choosing the option for best results.

Because by using sed option its taking too much time for searching and replacing text in all thousand files. And redirecting the modified files to the same directory.

At present i am using sed for the above.But its taking 2 hrs to replace and redirect the modified files .

Can anyone suggest for choosing best among sed ,perl and awk?

i think it will be perl.

Have You tried the -i option for sed? If Your version supports it. It edits the file "in place", it may cut down on time with file handling and piping, depending on how You do it.

/Lakris

2 hours for thousands of files does not sound bad. And what happened to the suggestions from the other thread? It seems like you're just starting over again with the same question.