:
#  Copyright (c) 1992	Enhanced Software Technologies, Inc.
#			5032 South Ash Avenue #107
#			Tempe, AZ  85282
#			602-820-0042
#
#  FILE
#
#	showxlog    show BRU execution log
#
#  RCS CHANGE LOG 
#
#	showxlog,v
# Revision 1.2  1994/05/07  23:10:03  jeff
# Added RCS keywords.
#	
#
#  DESCRIPTION
#
# 	This script will display the end of the BRU execution
#	log (normally /usr/adm/bruexeclog)
#
#	If no argument is specified, the last ten lines of the
#	log file will be shown.
#
#	If a numeric argument is given, then the specified
#	number of lines will be shown.  For example,
#	the command "showbrulog 100" will show the last
#	100 lines of the log file.
#
#
if [ "$BRUEXECLOG" = "" ]
then
	BRUEXECLOG=/usr/adm/bruexeclog
fi

if [ "$#" = 0 ]
then
	tail -10 $BRUEXECLOG 	# default - show last 10 lines
else
	tail -$1 $BRUEXECLOG	# show the specified number of lines
fi
