Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    4

    Unanswered: Remove pattern list and update

    I have a output file for my system logs monitor sent to Admin group every day ; Recently we see there are many external system disconnects, So we want to avoid them from the list of alerts.

    If I have the avoid notification patterns on a file. How to eliminate them from o/p file.

    The o/p file name is “syslog”; the avoid pattern is “RFCDestination”, "RFCDDC" . So I want to delete all RFCDestination lines from syslog file and send a alert. Is this easy?. Please advise.

    The avoid pattern list file is created with RFCD....entries.

    Can you please avdise using this avoid_pattern_lst delete entries in "syslog" and generate final file.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    grep -v RFCD syslog | mail admin_group@steve_johnson.com

    By the way, what's "o/p"?

  3. #3
    Join Date
    Jan 2005
    Posts
    4
    Could you please how to do it for multiple pattern eliminations....like in a file iahve all not required patterns. the o/p is know as output.

    thanks, Please advise

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    man grep
    .........................

Posting Permissions

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