# see if the file exists
if [ -e full.log ]
then
# check the number of lines
cur_log_line=$(cat full.log | wc -l)
# compare to entry in saved file
lst_log_line=$(cat lst_log_line_file)
if [ cur_log_line -gt lst_log_line ]
then
# get lines after the last pass-thru
tail_lines = cur_log_line - lst_log_line
tail -$tail_line full.log > today.log
# set the last line checked
echo $cur_log_line > lst_log_line_file
# mail the file
uuencode today.log today.log | mailx -s "logs"
somebody@me.com
fi
fi
p.s. funny how this board removes leading spaces - the code was more readable when indented