Hi All Im trying to figgure out how to grep a file and only produce the *last* line found. I want to cat /var/log/messages | grep remote this outouts all line which contain remote, I only want the last one I plant to display onscreen my remote ip when I connect to my isp. I looked into uniq but obiviously the datestamp makes eask entry unique any ideas on to to use grep for my needs thanks rob -- God may be subtle, but He isn't plain mean. -- Albert Einstein 6:05am up 3 days, 7:30, 4 users, load average: 1.00, 1.00, 1.00 __ _ / / (_)__ __ ____ __ / /__/ / _ \/ // /\ \ / /____/_/_//_/\_,_//_\_\