Re: Extracting fields from a data file

2004-06-29 Thread John W. Krahn
Mohammed Chafik wrote: > > Hi all, Hello, > I have input file like this: > > header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > > hea

Re: Extracting fields from a data file

2004-06-29 Thread Gunnar Hjalmarsson
Mohammed Chafik wrote: Due to your remarques, my script works properly now : Does it? It does not meet your original specification. This is what it outputs for me: header: path: subject:bscs header: path: subject:bscs header: path: subject:bscs #/usr/local/bin/perl -w --^^ Please copy and paste,

RE: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
--- Original Message - From: "Charles K. Clarkson" Date: Tue, 29 Jun 2004 13:20:08 -0500 To: "'mohammed chafik'" , Subject: RE: Extracting fields from a data file > mohammed chafik wrote: > > : Due to your remarques, my script works properly now

RE: Extracting fields from a data file

2004-06-29 Thread Charles K. Clarkson
mohammed chafik <[EMAIL PROTECTED]> wrote: : Due to your remarques, my script works properly now: : Here is the new version after modifications (I'll be : glad, if you have any seggestion to make it better, : actually the script uses big files, more than 200MB): The report produced is very d

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 19:26, Wiggins d Anconia wrote: > > On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > > > That's what i've tried (may be it is not the best approch); > > > > If you ask me, the general approach is quite ok... > > Good suggestions, if we are going to stick with the loop

Re: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
k+1]); print OUTDATA "$line\n"; } close INDATA; close OUDATA; Sorry to bother you with my problems, CHAFIK. - Original Message - From: "Wiggins d Anconia" Date: Tue, 29 Jun 2004 11:26:27 -0600 To: Philipp Traeder , [EMAIL PROTECTED] Subject: Re: Extracting fie

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
> On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > > That's what i've tried (may be it is not the best approch); > > If you ask me, the general approach is quite ok... > > > > > > for ($i = 0; $i < 400; $i++) { > > The other source for the messages is that you're trying to access valu

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > That's what i've tried (may be it is not the best approch); If you ask me, the general approach is quite ok... > Any way, My script doesn't work, it returns an error message (Use of > uninitialized value at formater.pl line 22, chunk 4.) >

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
Please bottom post... > That's what i've tried (may be it is not the best approch); > Any way, My script doesn't work, it returns an error message (Use of uninitialized value at formater.pl line 22, chunk 4.) > > - > #!/usr/local/bin/perl -w

RE: Extracting fields from a data file

2004-06-29 Thread Charles K. Clarkson
From: mohammed chafik wrote: : Hi all, : : I have input file like this: : -- : -- : header, 06-12-2004, path, : /usr/bin/sh,attribute,100555,root,other,315,565690, : subject,bscs,sgrp,9936,6785,0 0,retu

Re: Extracting fields from a data file

2004-06-29 Thread mohammed chafik
elds[$k+1]); print OUTDATA "$line\n"; } close INDATA; close OUDATA; --- Thanks ; CHAFIK - Original Message - From: "Wiggins d Anconia" Date: Tue, 29 Jun 2004 09:07:09 -0600 To: "mohamm

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 17:04, mohammed chafik wrote: > header, 06-12-2004, path, > /usr/bin/sh,attribute,100555,tom,other,315,56,11,54,77,10,88, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line3) > --- > > I need to genera

Re: Extracting fields from a data file

2004-06-29 Thread Gunnar Hjalmarsson
Bob Showalter wrote: mohammed chafik wrote: I have input file like this: header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) ... I need to ge

RE: Extracting fields from a data file

2004-06-29 Thread Bob Showalter
mohammed chafik wrote: > Hi all, > > I have input file like this: > > header, 06-12-2004, path, > /usr/bin/sh,attribute,100555,root,other,315,565690, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > ... > I nee

Re: Extracting fields from a data file

2004-06-29 Thread Wiggins d Anconia
> Hi all, > > I have input file like this: > > header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) > > header, 06-12-2004, path, /usr/bin/sh,

Extracting fields from a data file

2004-06-29 Thread mohammed chafik
Hi all, I have input file like this: header, 06-12-2004, path, /usr/bin/sh,attribute,100555,root,other,315,565690, subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line1) header, 06-12-2004, path, /usr/bin/sh,attribute,100