homer512 icon

change nagios conf

homer512 | PRO | 06/11/14 02:59:19 PM UTC | 0 ⭐ | 10942 πŸ‘οΈ | Never ⏰ | []
Awk |

290 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

#!/bin/sed -f
Β 
# Replaces the occurance of "use unix-3m-low" with "use unix-3m-dontcare" in
# between a line containing "# check procs SysView "SVhttpd.pl" and the next
# line containing "}"
Β 
Β 
/# check procs SysView "SVhttpd.pl/,/\}/ {
Β  Β  s/\(use[ \t]*\)unix-3m-low/\1unix-3m-dontcare/
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž