#!/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 "" 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 "" for i in $* do grep -i $i /vast/igraham/Personnel done echo "" echo "" fi