From: [email-masked]
Date: Thu, 9 Apr 98 20:27:36 EDT

#!/bin/sh

 echo "Running the fortune shell...................."
 count=1
 /usr/games/fortune -s >> file.$count
 num=199
 while test $num -ge 1
  do
   compare=1
   /usr/games/fortune -s > temp
   while test $compare -le $count
    do
     cmp temp file.$compare > comp.result
     if test ! -s comp.result
     then 
       echo "Eureka!.... The fortune that occured again is: "$compare
       exit 1
     fi
     'rm' comp.result
     compare=`expr $compare + 1`
    done
    count=`expr $count + 1`
    mv temp file.$count
    num=`expr $num - 1` 
  done
  'rm' file.*