> Hi > > This scripts sucks in a 109mb file and i'm trying to do a > search and replace on unxtime to the format from strftime. > Which is working... > > But I run this system call and it took allnight to run :( > > So I killed it... Any other suggestions to reach my goal..... > >
Yes it looks like you are slurping this 109MB file then for each line you -pie the file again for each match so if it has 1000 lines with 2 matches you're processing the file 2000000 times instead of once. Probably many more lines than that but it's easy to calculate. I was working on a solution for you but Steve's looks way cooler than my version so I'll let you use his. :) DMuey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>