Anyone got a logfile script? - Help a n00b
fperez528 at yahoo.com
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
> 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?
$ grep ID file | grep action
Think of it as an 'AND' grep implemented with a pipe.
More information about the Python-list