[prev in list] [next in list] [prev in thread] [next in thread]
List: suse-linux-e
Subject: Re: [SLE] grep question ...
From: SuSEnixER <WideGlide () MyRealBox ! com>
Date: 2002-12-08 20:01:00
[Download RAW message or body]
* Alexandros Karypidis <karypid@inf.uth.gr> [12-08-02 14:48]:
> You can re-filter the output via a second grep. For example:
>
> cat filename.txt | grep 08.12.2002 | grep michael
>
> On Sunday 08 December 2002 21:45, Michael Hoeller wrote:
> > I like to get out of a log file all lines which are from 08.12.2002 *and*
> > have the user 'michael'
> >
> > grep 08.12.2002 /filename does the first half, how can I include there the
> > grep for 'michael' ??
> >
> > [..]
> > 07.12.2002 19:41:49 21 2324 10773 0 1.0 michael
> > 07.12.2002 19:42:49 21 2324 10773 0 1.0 michael
> > 08.12.2002 19:43:49 21 2324 10773 0 1.0 michael
> > 08.12.2002 19:44:49 21 2324 10773 0 1.0 michael
> > 08.12.2002 19:45:49 21 2324 10773 0 1.0 tst
> > 08.12.2002 19:46:49 21 2324 10773 0 1.0 tst
> > [..]
Or, getting past the TOFU and extraneous quoting:
grep 08.12.2002 filename.xxx | grep michael
--
Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
icq#173753138
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@suse.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic