Parse numeric string

2010-06-16 Thread mrwawa
Hi all, I am new to Perl and am trying to do the following. I have a dataset file with the following example structure. ACRU 12 34 QUAL 28 90 QURU3345 . . . . . QUVE29 88 As you can see, line 3 only contains on 2 columns. "3345" is missing a tab. I have written code to loop

Edit large data file

2010-06-16 Thread mrwawa
Hi all, I posted earlier, but it has not been listed yet. I have a second question about editing a large data file. 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

Re: Edit large data file

2010-06-17 Thread mrwawa
On Jun 16, 7:14 am, rwci...@alum.calberkeley.org (Robert Citek) wrote: > On Tue, Jun 15, 2010 at 1:50 PM, mrwawa wrote: > > Is this possible, and if so how can I do it? > > Can you give an example? > > For example, using colons instead of tabs, if the input looks like this