Re: modify the first few lines of a file

2003-02-07 Thread Rob Dixon
Sashidhar wrote: > I may have to change the length of the files. Is there no way, like > manipulating the inode entries to reflect any changes in the length. > Ofcourse, I realize that this is specific to the linux/unix env. > The problem is a limitation of the filing system itself. The starting p

Re: modify the first few lines of a file

2003-02-06 Thread John W. Krahn
Sashidhar wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > Sashidhar wrote: > > > > > > I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 > > > lines of such files. Is there a way in Perl to modify just the first 'n' lines > > > of the file without having t

Re: modify the first few lines of a file

2003-02-06 Thread sashidhar
I may have to change the length of the files. Is there no way, like manipulating the inode entries to reflect any changes in the length. Ofcourse, I realize that this is specific to the linux/unix env. --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Sashidhar wrote: > > > > Hello, > > Hello, >

Re: modify the first few lines of a file

2003-02-06 Thread John W. Krahn
Sashidhar wrote: > > Hello, Hello, > I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 lines > of such files. Is there a way in Perl to modify just the first 'n' lines of the file > without having to process rest of the file as it involves a lot of IO and time. It de