On Wed, 13 Nov 2002, Gordon McDowall wrote: > Does anyone know the syntax to grep the past say 5 minutes of a log file, or > a shell script that would do something similar. > Any help appreciated
While possible, you are better off with perl if you really have to do the last 5 minutes. If you want quick and dirty, try "tail -100 /var/log/messages", which just give you the last 100 lines. -- \ \/ / _ |~\ _ In God We Trust. All Others Pay Cash. > < / \|\ /|+-< | | "The world is a comedy to those that think, / /\ \\_/| \/ ||__)|_| a tragedy to those who feel." - Horace Walpole -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list