From: org chen <[EMAIL PROTECTED]>
> I have a huge file, there are 47,286,116 lines. I am search a line and
> repalce this line with another string. I know this line is between
> 20,000,000th to 30,000,000th lines. Which way is more fast and safe: 

And is the string exactly as long as the original line? 'cause if 
it's not you'll have to move the rest of the file.

More likely than not you should have the data in a database.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to