Hi
I have two questions about grep.
1) Is grep support real time analysis ? What I mean ? I have an application that produces records continuously in a file. I try to run grep but grep run faster my application , it find my requested pattern and exits, but my application still produces records. Is there any way for grep to run continuously and produces results while my application running and produce new records ?
2) Can grep show me only the newest pattern that it finds. For example for a file
aaa1
aaa2
aaa3
and
> grep aaa filename
to show me first the aaa1 , then only the aaa2 and then only aaa3
Thanks