From: Reid Thompson Date: 2007-11-10T06:03:43+09:00 Subject: Re: How to edit a file without loading it all into memory newer versions of sed can replace text in place in files. there's also perl's perl -pi -e 's/to change this/to change that/' filename On Sat, 2007-11-10 at 05:51 +0900, Jonathan Dobbie wrote: > I need to change the texture paths in maya files. The lines are easy to > find with grep, and I'm able to create the new line easily enough, but > how can I do this without holding the entire file into memory? The > files can be hundreds of megabytes. > > Thanks.