Validate text in a file.

Discussion in 'Perl' started by Tsvikash, Aug 12, 2007.

  1. Tsvikash

    Tsvikash New Member

    Joined:
    Aug 12, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    :confused: Hi Guys,

    I have no idea how to writing Perl but I know the Perl can be very helpful.
    I need help with some script.
    I have Linux machine (RedHat).
    Sometimes I use WireShark on that machine to sniff traffic.
    I would like to take the Wireshark file and export it to my PC (or locally) to a text file.
    Now, using Perl script I would like to validate parameters or text in the text file.
    I will very appreciate the help, and hope I not impolite.
    Have a nice day to all.

    Tsvika
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    You can't just learn Perl like that! You'll have to start from scratch! Btw, what does that text file contain?
     
  3. Tsvikash

    Tsvikash New Member

    Joined:
    Aug 12, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Thank you for your respond.
    I start learning Perl but I'm not good enough.
    The text file I talking about is just a text file with parameters.
    I mean, I use the software Ethereal to capture SIP protocol, and then I convert the Ethereal file to a text file.
    And then I would like to check if some words or numbers appear in it. And the script will tell me if it’s true or false.
    Thanks again,

    Tsvika
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice