Of course, you could do it the long & half-assed way with wc (word count). wc -l gives you a line count. wc -l /etc/file NUM=$(wc -l /etc/file); NUM=$((NUM-20)); tail -$NUM /etc/file -- To unsubscribe, send email to majordomo@luci.org with "unsubscribe luci-discuss" in the body.