Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: SYSLO Grepping

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.


  2. #2
    Linux Guru
    Join Date
    Apr 2003
    London, UK
    Locked. Please continue in other thread you started about this...

Posting Permissions

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