Re: Shell/Awk processing question
> > Since the retrieval process isn't very refined, I'm stuck with log
> > output that spans several minutes, but I'm only interested in the
> > output from the past minute (date +%H:%M --date "1 minute ago"). ÂI've
> > tried to write a small awk process that would go through the log file
> > every 5 minutes and capture the output from the past minute and write
> > it out to individual log files locally.
You can write a program that reads via tail -f filename, It can do
something special every time the timestamp increases to the next
rounded-off value.
|