Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] matching to filter logfile
- Date: Sat, 16 Dec 2006 12:43:03 +0900
- From: "Keith Bawden" <keith@example.com>
- Subject: Re: [tlug] matching to filter logfile
- References: <1166231678.4539.19.camel@example.com> <4583531D.3050709@example.com>
On 12/16/06, Al Hoang <hoanga@example.com> wrote:> how can I match say "eth1" from /var/logs/messages so I can just get > output of the lines that contain that item > How about: cat /var/log/messages | grep eth1
Or
grep eth1 /var/log/messages
The end result is the same as Al's just removes the need for using cat and a | ...
When playing with grep I also like to add --colour=auto so the above would become:
grep --colour=auto eth1 /var/log/messages
This way you can see what grep is matching.
Regards, Keith
- References:
- [tlug] matching to filter logfile
- From: Shawn
- Re: [tlug] matching to filter logfile
- From: Al Hoang
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] ideas for wiki
- Next by Date: [tlug] LAN card install
- Previous by thread: Re: [tlug] matching to filter logfile
- Next by thread: [tlug] LAN card install
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links