FW: Help reqd. for collecting data

2002-02-05 Thread Anand, Pankaj
only in that file - 01/12 Data1 Data2 Data3 01/13 Data1 Data2 Data3 ... 01/18 Data1 Data2 Data3 Thanx > -Original Message- > From: Anand, Pankaj [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 2002 11:57 AM > To: 'Beginners (E-mail) > Sub

RE: Help reqd. for collecting data

2002-01-24 Thread Jay Boucher
I am just looking for an intro to PERL. I am getting an old machine to install LINUX on and don't know the first thing to do... Is there any websights or tutorials for absolute beginners? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help reqd. for collecting data

2002-01-23 Thread Bob Showalter
> -Original Message- > From: Pete Emerson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 2002 2:13 PM > To: [EMAIL PROTECTED] > Subject: Re: Help reqd. for collecting data > > > Here's my stab at it: > > #!/usr/bin/perl -w > > us

Re: Help reqd. for collecting data

2002-01-23 Thread Pete Emerson
Here's my stab at it: #!/usr/bin/perl -w use strict; my %info; open INFILE, "$ARGV[0]" or die "Can't open file: $!\n"; # Open file specified on command line while () { chomp; my ($date, @data)=split; # Capture the date, then the rest $date=~s/_\d{4}$//; # Re

Help reqd.

2001-12-14 Thread Anand, Pankaj
> I have to make a script which will read a log file and find for error , > the string is like "err=0" if the no. is > 0 then I want the first coloumn > of line that's time stamp redirected to some other file or I can define > some RE that if err=2 , do this. > > Secondly the log file is rotaion