|
awk
Here is what I would like to do:
Take selected fields from a log file. Only print or get the last 10 fields that match search string. Take the results a write it to a file (over writhing the old data each time) The resulting data file that is created will serve a text web page that shows the last 10 qualifying results from the awk search string.
I would like to have this process run in the background and search for new strings every minute or so.
I know how to write the awk string to ge the patterns. I just dont know how to only select the last 10 results and have the whole thing run in the background.
Thanks
Ted
|