Anyone got a logfile script? - Help a n00b

Fernando Pérez fperez528 at
Thu Sep 12 18:09:43 CEST 2002

Daniel Stuart Kelly wrote:

> Thanks for the quick answer Pádraig.
> The context grep will pull back all the instances of the variable.. The
> variable in this case is a unique user ID. The ID will be in the log file
> multiple times for different actions that the user performs which are being
> logged....
> I want to be able to search for specific actions.. Ie connections,
> disconnections, config changes. and not for every action that the user has
> performed.
> Will Grep do this for me?

$ grep ID file | grep action

Think of it as an 'AND' grep implemented with a pipe.


More information about the Python-list mailing list