;) *hangs head in shame*

Robert C. Cipriani
Senior Network Administrator
Tampa Bay Division IT
Bright House Networks
W: (727) 329-2000 x74264
M: (727) 365-1231





-----Original Message-----
From: Andreas Ericsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 28, 2007 10:03 AM
To: Cipriani, Robert C
Cc: 'nagios-users@lists.sourceforge.net'
Subject: Re: [Nagios-users] Centralizing NRPE Configuration

Cipriani, Robert C wrote:
> I like the idea of being able to say "add line x to file y if
> line x doesn't yet exist".
>

grep -q "^$line$" file || echo "$line" >> file

oh gods, that was a tricky one! ;-)

--
Andreas Ericsson                   [EMAIL PROTECTED]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, 
confidential or otherwise protected from disclosure. If you are not the 
intended recipient of this e-mail, please notify the sender immediately by 
return e-mail, purge it and do not disseminate or copy it.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to