From: Stefan Huber Date: Sun, 28 Oct 2012 19:41:57 +0000 (+0100) Subject: nsd-dynipwatch: make grep silent X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=d8ed6623cfb2ef490938aa7da69dcf984d6bf23d;p=shutils.git nsd-dynipwatch: make grep silent --- diff --git a/nsd-dynipwatch b/nsd-dynipwatch index fd064bb..a002f95 100755 --- a/nsd-dynipwatch +++ b/nsd-dynipwatch @@ -52,7 +52,7 @@ function run() newip=`cat ${watchfile}` echo "`date '+%a %F %T'` :: ${oldip} => ${newip}." - if ! echo "${newip}" | egrep "^([0-9]+\\.)+[0-9]+$" ; then + if ! echo "${newip}" | egrep -q "^([0-9]+\\.)+[0-9]+$" ; then echo "Wrong format of new IP address." continue fi