Anyone got a logfile script? - Help a n00b

Daniel Stuart Kelly dstuartkelly at
Thu Sep 12 06:00:16 EDT 2002

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 

I want to be able to search for specific actions.. Ie connections, 
disconnections, config changes. and not for every action that the user has 

Will Grep do this for me?


Quoting Padraig Brady <Padraig at>:
> would a "context grep" not be simpler?
> grep --before-context=20 log.file
> Pádraig.

More information about the Python-list mailing list