22 Mar
2001
22 Mar
'01
11:53
Hi, On Thu, Mar 22 2001 at 06:48 -0500, dizzy73 wrote:
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.
Try `grep remote /var/log/messages | tail -1'. Ciao, Stefan -- Stefan Troeger o _ _ _ stefan@troeger.st __o __o /\_ _ \\o (_)\__/o (_) _`\<, _`\<, _>(_) (_)/<_ \_| \ _|/' \/ (_)/(_) (_)/(_) (_) (_) (_) (_)' _\o_