#!/bin/sh echo Content-TYPE: text/html echo if [ $# = 0 ] # is the number of arguments == 0 ? then # do this part if there are NO arguments echo "" echo "Local Phonebook Search" echo "" echo "" echo "" echo "

Local Phonebook Search

" echo "Enter your search in the search field.

" echo "This is a case-insensitive substring search: thus" echo "searching for 'ian' will find 'Ian' and Adriana'." echo "" else # this part if there ARE arguments echo "" echo "Result of search for \"$*\"." echo "" echo "" echo "

Result of search for \"$*\".

" echo "
" 

 for i in $* 

  do 

     grep -i $i /vast/igraham/Personnel 

 done 

 echo "
" echo "" fi