Less and regular expressions
On Tue, Jul 08, 2008 at 11:37:11 -0700, Account for Debian group mail (email@example.com) wrote:
> I'm doing a search of a syslog file using less - and having a brain fart.
> I'm trying to make a regular search expression that will look for the word
> "greylist" and the word "*.aol.com" in the same line of the syslog.
> I just do not remember how to do this and looking around the Internet I'm
> not finding what I need.
> Can anyone help me?
Admittedly this does not answer your question (using 'less'), but this
grep greylist /var/log/syslog | grep 'aol.com'
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org