Find the answer to your Linux question:
Results 1 to 2 of 2
How do I have the expression below only return an exact match on port 25? It is returning /25 /2534 /25 etc. I need the expresion below to return only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    8

    SYSLO Grepping


    How do I have the expression below only return an exact match on port 25? It is returning /25 /2534 /25 etc.

    I need the expresion below to return only the exact match


    ex: to outside: "IP Address"/25 only.


    egrep "to outside:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\/25" /var/log/messages

    Any help would be appreciated.

    Gregg

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Locked. Please continue in other thread you started about this...
    http://www.linuxforums.org/forum/viewtopic.php?p=104749

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •