greping with time stamp

Hi all,

I want to grep a file name with time stamp as 30 minutes how can  i??.

Ex

I will getting outputs in a file every minutes

I want to grep it by a time intervals of 30 and show it . Any help will be great !

Thanks,
Arun.

Can you please give an example by contents of file and what you will be searchin here is solution but i am not sure if i understood properly.
keep that grep command in infinite loop and after grep command put sleep function

while [ 5 ]
do
grep........
sleep
done

run this script as backend process