#!/bin/sh 
# isRecursionMentioned.sh

# a sample shell script to see whether recursion is mentioned in
# in a text file that contains lecture notes

# check the file

grep recursion /home/usra/d9/55560/public_html/cisc181/05S/lect/notes/8am/$1/* 1> /dev/null

# save the return status

RETURN_STATUS=$?

if [ $RETURN_STATUS -eq 0 ]
then
  echo "recursion is mentioned"
else
  echo "no mention of recursion found"
fi

