On Wed, Jun 16, 2010 at 5:19 AM, John W. Krahn <jwkr...@shaw.ca> wrote:
> mrwawa wrote: > >> I have a data file (roughly 13 GB) that consists of tab delimited >> entries. Because of its large size, I am reading the data in one line >> at a time. For some of the rows, a tab is missing between columns 2 >> and 3 and I want to parse the column and then edit the row in the >> existing data file. I want to maintain the existing row order, so I >> don't want to append onto the existing data file, rather I want to >> replace the row that is missing the tab with the new parsed row. >> >> Is this possible, and if so how can I do it? >> > > It is possible, you just have to write the new data to a new file. You might also want to look at the "-n", "-p", and "-i" command line options for Perl (http://perldoc.perl.org/perlrun.html). -- Robert Wohlfarth