yes of course tail... but I only want one line with the word *remote* I dont want the entire portion of tail Ok so you youre suggesting cat /var/log/messages | grep remote | tail -n 1 > myip ok Ill check that many thanks rob Koos Pol wrote:
On Thu, 22 Mar 2001 06:48:46 -0500 (EST), dizzy73 said:
| Hi All | Im trying to figgure out how to grep a file and only produce the | *last* line found.
man tail
-- ---------------------------------------------------- Koos Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq