[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Less and regular expressions



> On Tue, Jul 8, 2008 at 9:20 PM, Bob Cox <debian-user@lists.bobcox.com>
> wrote:
>
>> On Tue, Jul 08, 2008 at 11:37:11 -0700, Account for Debian group mail (
>> debian@pcez.com) wrote:
>>
>> >
>> > Hello,
>> >
>> > 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?


less +/'greylist.*\*.aol.com' <file>


--
Josh Miller, RHCE


Reply to: