[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Shell: why?
- Subject: [ale] Shell: why?
- From: zymana at hra.nyc.gov (Zyman, Andy)
- Date: Thu, 21 Feb 2002 12:49:22 -0500
Please disregard this question.
the behavior is different in different grep.
> -----Original Message-----
> From: Zyman, Andy [mailto:zymana at hra.nyc.gov]
> Sent: Thursday, February 21, 2002 12:41 PM
> To: 'ale at ale.org'
> Subject: [ale] Shell: why?
>
>
> Hello,
>
> why i have to use :
>
> tail -f ./*.log | while read LINE ; do
> if ` echo $LINE | cut -f1 -d' ' ` = 'ORA-' ....
>
> but can't use :
>
> tail -f ./*.log | grep ORA-
>
> "I feel stupid .... " :(
>
> I thought that tail would read *.log file and send in to the standard
> output, then grep will "catch" it and perform search. but it
> doesn't work as
> expected.
> Please advise.
>
> Thank You
> Andy
>
InterScan VirusWall processing complete - message virus-free.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.