Skip to main content
7 events
when toggle format what by license comment
Jun 30, 2014 at 10:01 history edited LatinSuD CC BY-SA 3.0
make the awk program independent as requested, other minor improvements
Jun 29, 2014 at 10:08 comment added Didi Kohen You could, but you should save only the part within the single quotes in that file.
Jun 26, 2014 at 17:18 comment added Geek @DavidKohen I would like to save this script. So if I save this as say findEvents.awk. Can I execute it like this: awk -f findEvents.awk A.log ?
Jun 26, 2014 at 17:09 comment added Didi Kohen To use this script just replace the inputfile.txt with your file name, or better, remove the cat and pipe, and put your file name after the closing single quote.
Jun 26, 2014 at 17:03 comment added Geek @LatinSuD I am not familiar with awk. So if you can add the part that I need to do to run the above program it will be very helpful. For me the input file is say A.log.
Jun 26, 2014 at 17:00 comment added Didi Kohen You should increment the event counter separately from the event header (or have the operator before), this causes the header and footer to show different numbers and is less readable.
Jun 26, 2014 at 16:50 history answered LatinSuD CC BY-SA 3.0