Perl

Discussion in 'Software' started by Siddharthan, May 11, 2006.

  1. Siddharthan

    Siddharthan

    Joined:
    May 11, 2006
    Messages:
    1
    Hi.

    I want to write a Perl Script. I have a Log file that contains Date, Time, year, Domain Name and Errors. My task is i have to display only the lines that say the word ERROR.. Here is the sample contents in the log file


    Mar 02 16:20:16.825 | INFO | 9F2F5C3C7D763707DA69481ACB558BAB | undefined | 172.30.32.54 | Mar 02 2006 16:20:16.498 | EVNT=SWIphnd|TSTT=Error|TRTT=
    Mar 02 16:20:16.825 | INFO | 9F2F5C3C7D763707DA69481ACB558BAB | undefined | 172.30.32.54 | Mar 02 2006 16:20:16.498 | EVNT=SWIdmnd|TSTT=Error|TRTT= .............. it goes on......

    Plz advice .

    Thanks
    Siddharth
     
    Siddharthan, May 11, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rgarvind

    Regarding perl programming. How 2 make HTTP request?

    rgarvind, Jan 10, 2005, in forum: Microsoft Certification
    Replies:
    1
    Views:
    721
  2. mkinsman

    NAS Perl/CGI Script

    mkinsman, Nov 23, 2003, in forum: Cisco
    Replies:
    0
    Views:
    617
    mkinsman
    Nov 23, 2003
  3. Rick Frink
    Replies:
    0
    Views:
    1,785
    Rick Frink
    Aug 6, 2004
  4. tomviolin
    Replies:
    9
    Views:
    1,107
    Richard Graves
    Apr 26, 2005
  5. business one way

    Is it a Perl program or a Perl script?

    business one way, Jan 5, 2008, in forum: Digital Photography
    Replies:
    0
    Views:
    785
    business one way
    Jan 5, 2008
Loading...

Share This Page