Try this algorithm :

Read the file (if you have sufficient memory to load it)
Replace in each ligne
Write the new lines

P. Boisieau

>From: Rajanikanth Dandamudi <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Help Required - Search and Replace
>Date: Thu, 21 Mar 2002 10:55:41 +0530
>
>All,
>
>I have a one big text file and also I have some set of strings to be
>replaced by another set of strings. Currently, I am reading each line of
>the file, and replacing one set of strings by another set of strings,
>one after another. Is there any efficient way of doing this? The data is
>so huge that this job takes around 7Hrs of total time on Sun Ultra 10.
>Is there any way of efficiently doing this? Thanks in advance.
>
>Thanks and Regards,
>D.Rajanikanth


_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to