On Mon, May 08, 2000 at 07:34:54AM +1000, Jeff Waugh wrote:
> tac /var/log/messages* | fgrep Connect: | head -n 1
whats wrong with:
fgrep Connect: /var/log/messages* | tail -1
you will always have to pass through the entire file once, and you
can't print the last line until you have finished. (assuming the fgrep
is fast, which it is - esp. if you give it a longer pattern (work that
out ;) )
so what do you gain by using tac ?
--
- Gus
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text