Hello all.

Need a bit of help. It seems fairly easy, but I'm a bit stuck. I'm parsing a log file for all data that's less than or equal to 30 minutes old, sending it to a temp file for reading. How do I store the time value, and use that with awk to get the contents I'm looking for?

File contents:
Code:
Feb  5 12:01:14 some random data here
Feb  6 12:02:23 some random data here
Feb  6 13:30:45 some random data here
Feb  7 13:03:42 some random data here
Feb  7 15:23:45 some random data here
What trying to do
Code:
value=`perl -e 'print scalar localtime( time - 1800 );' | awk '{print $4}'`

awk -v v=$value '$3>="$v" {print $0}' myfile > myfile.out
Thanks in advance!