Ok Muthu,
         See there is a file called as pixconfig.txt which has the entries
such as
*PIX-4-106023*
 *PIX-4-101123*
*....so on*

and there is one more file called ip.log which has the entries below,
Nov 29 10:03:24 10.20.1.2 Nov 29 2005 10:33:53: %*PIX-4-106023*: Deny tcp
src inside:Blackberry/3657 dst outside:102.112.149.73/445 by access-group
"inside"

i have to macth the bold characters written in the file so i use the below
code which is not working

Open (FILE1,">pixconfig.txt");
Open (FILE,">ip.log");

while (<FILE1>)
{
        $line1 = $_; (Here i Get the *PIX-4-106023* entry from the file)
        while (<FILE>)
        {
                $line = $_;
                if ($line =~ /(.*)$line1(.*)/)  (Here i have to check the
value which i get from a file but it is not searching)
                {
                         print "Got the String";
               }
     }
}

Please Help me out

regards
Mazhar



On 11/29/05, Muthukumar <[EMAIL PROTECTED]> wrote:
>
> Can you post your exact work around on this to help you! Post script and
> files and your requirement.
>
> Regards,
> -Muthu
>
>
> On 11/29/05, Mazhar <[EMAIL PROTECTED]> wrote:
> >
> > Muthu still the pattern does not match and it comes out of the loop
> >
> > Regards
> > Syed
> >
> >
>
>
>
> > --
> > Mail: [EMAIL PROTECTED] | www: http://geocities.com/kmuthu_gct/
> >
>

Reply via email to