Mark Post wrote:
count=$(wc -l /var/log/toolarge | cut -f1 -d" ") let start=$count-9999 if [ ${start} -le 1 ]; then echo start is set to 1 let start=1 fi
start=$((count > 10000 ? count - 10000 : 1)) like c. - Larry ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390