REPORT_OPTION=
if [ $# -gt 0 ] ; then		# Something left to parse.
	case $1 in
	    "-r"	) REPORT_OPTION="doit"
			  ;;	
	esac
fi

if [ "$REPORT_OPTION" = "doit" ]
then
	awk '   BEGIN { NumComment=0
		        NumBlank=0
		      }
		      { if ( $1 ~ /\*.*/ )
				NumComments += 1
			else
			if ( NF == 0 )
				NumBlanks += 1
		      }
		END   {	print "Total lines:\t\t" NR 
			print "Whole comment lines:\t" NumComments
			print "Blank lines:\t\t" NumBlanks
	 	      } '
else
	# strip blank lines and lines beginning with *
	# reads stdin, writes stdout

	egrep -v '^[ 	]*$|^\*'
	# the egrep has a blank and a tab inside brackets
fi
