[ale] Shell: why?

Zyman, Andy zymana at hra.nyc.gov
Thu Feb 21 12:41:16 EST 2002


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.




More information about the Ale mailing list