Commits

Anonymous committed 3608640

add a flag to egrep

  • Participants
  • Parent commits f0dc295

Comments (0)

Files changed (1)

File share/post.sh

-#!/bin/sh -xv
+#!/bin/sh
 #/** @file post.sh
 # @brief sh script that check the return code of an executable and compares 
 # its output with a reference (if available).
 # @param test_name 
 #
 # @author Paolo Calafiura <pcalafiura@lbl.gov> - ATLAS Collaboration.
-# $Id: post.sh,v 1.5 2003-04-08 18:44:17 calaf Exp $
+# $Id: post.sh,v 1.6 2003-04-08 23:43:13 calaf Exp $
 # **/
 test=$1
 if [ -z "$status" ]
 #	    echo " post.sh> Now comparing output with reference"
 	    diff -a -b -B $joblog $reflog |\
                 # remove diff annotations
-		egrep -v '^---|^[[:digit:]]+[ac,][[:digit:]]+' |\
+	        egrep -a -v '^---|^[[:digit:]]+[ac,][[:digit:]]+' |\
                 # remove hex addresses
-		egrep -v ' 0x\w{4,}' | \
+		egrep -a -v ' 0x\w{4,}' |\
                 # remove package names e.g. Package-00-00-00
-		egrep -v '\w+-[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{2}' |\
+		egrep -a -v '\w+-[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{2}' |\
 		# remove cpu usage printouts
-		egrep -v 'ChronoStatSvc +INFO Time' |\
+		egrep -a -v 'ChronoStatSvc +INFO Time' |\
 		# remove clid db file name
-		egrep -v 'from CLIDDB file'  |\
+		egrep -a -v 'from CLIDDB file'  |\
 		# remove rcs version comments
-		egrep -v '/.+\$Id: post.sh,v 1.5 2003-04-08 18:44:17 calaf Exp $'  
+		egrep -a -v 'Id: .+ Exp \$'  
 
 	    diffStatus=$?
 	    if [ $diffStatus = 0 ]