in reply to Re: grep lines from log for last 10 mints
in thread grep lines from log for last 10 mints
perl -MDate::Parse -e'BEGIN{$main::now=time;$main::old=(time-60*10)}' +-nE'if(/^(\w+\s+\d+\s+\d+:\d+:\d+)/) {$t=str2time $1; $t > $old && $t + < $now && print}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grep lines from log for last 10 mints
by aitap (Curate) on Aug 07, 2012 at 09:42 UTC |