From: Marco van Wieringen Date: Tue, 29 Sep 2009 18:02:12 +0000 (+0200) Subject: Change grep -e to egrep and use -c instead of using wc. X-Git-Tag: Release-5.0.0~299^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e732f1a132f3230783391843bacd02f8f1baf591;p=bacula%2Fbacula Change grep -e to egrep and use -c instead of using wc. Signed-off-by: Eric Bollengier --- diff --git a/regress/tests/exclude-dir-test b/regress/tests/exclude-dir-test index ee420e170d..b60bb8b80b 100755 --- a/regress/tests/exclude-dir-test +++ b/regress/tests/exclude-dir-test @@ -79,7 +79,7 @@ fi # build/po is included 2 times with a different exclude file # we shouldn't see scripts and bin -nb=`grep -e 'build/po/fr.po$' $tmp/log3.out | wc -l` +nb=`egrep -c 'build/po/fr.po$' $tmp/log3.out` if [ $nb != 2 ]; then print_debug "ERROR: Should see fr.po two times" bstat=2