Thread: Grep
View Single Post
Old Sep 16th, 2004, 10:37 AM   #1
cfriend
Newbie
 
Join Date: Jul 2004
Posts: 8
Rep Power: 0 cfriend is on a distinguished road
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
cfriend is offline   Reply With Quote