Advertisement
homer512

change nagios conf

Jun 11th, 2014
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.29 KB | None | 0 0
  1. #!/bin/sed -f
  2.  
  3. # Replaces the occurance of "use unix-3m-low" with "use unix-3m-dontcare" in
  4. # between a line containing "# check procs SysView "SVhttpd.pl" and the next
  5. # line containing "}"
  6.  
  7.  
  8. /# check procs SysView "SVhttpd.pl/,/\}/ {
  9.     s/\(use[ \t]*\)unix-3m-low/\1unix-3m-dontcare/
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement