home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / textprocess / grep_2 / release / Resources / Script < prev    next >
Text File  |  1989-03-11  |  316b  |  11 lines

  1. BEGIN { print "failures=0"; }
  2. !/^#/ && NF == 3 {
  3.         print "echo '" $3 "' | ../egrep -e '" $2 "' > /dev/null 2>&1";
  4.         print "if [ $? != " $1 " ]"
  5.         print "then"
  6.         printf "\techo Spencer test \\#%d failed\n", ++n
  7.         print "\tfailures=1"
  8.         print "fi"
  9. }
  10. END { print "exit $failures"; }
  11.