home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
GREP15.ZIP
/
SCRIPTGE.AWK
< prev
next >
Wrap
Text File
|
1991-01-14
|
265b
|
11 lines
BEGIN { print "failures=0"; }
!/^#/ && NF == 3 {
print "echo '" $3 "' | egrep -e '" $2 "' ";
print "if [ $? != " $1 " ]"
print "then"
printf "\techo Spencer test \\#%d failed\n", ++n
print "\tfailures=1"
print "fi"
}
END { print "exit $failures"; }