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
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]
> -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
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
> 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