5

Reading and removing lines from logfile

view full story
linux-howto

http://www.unix.com – Hello everbody. I'm trying to write a ksh script to find errors inside a logfile. But the main problem I found is that the "Logfile.txt" will got new lines very often. The software generates about 1000 lines per hour. (yes, ~24000 lines/day) "Logfile.txt" (with just very few lines) Code: # LOG:[00:57:12 30.9.2011] queued:/FolderA/ProcessA # LOG:[00:57:12 30.9.2011] queued:/FolderB/ProcessB # LOG:[01:00:21 1.10.2011] submitted:/FolderA/ProcessA # LOG:[01:59:48 1.10.2011] submitted:/FolderB/ProcessB # LOG:[02:00:08 1.10.2011] complete:/FolderA/ProcessA # LOG:[02:59 (HowTos)