Hello all,
My name is max and I am new to this forum. I am a beginner to Bash Scripting and been having a real problem trying to compare two log files. Long story short...
I have a known good wrapper.log file and I would like to have other new Wrapper.log files to compare next to it to see if any services did not start properly.
Normally I could just use the diff command or the cmp command in a script but this log file does not necessarily boot in the same lined order every time. So I think the only thing I am left with is using bash arrays? Could anyone point me in the right direction on how to start this project? MUCH MUCH thanks in advance.
This is a little snippit of the known good wrapper.log file below
STATUS | wrapper | 2011/09/28 19:45:00 | --> Wrapper Started as Daemon
STATUS | wrapper | 2011/09/28 19:45:00 | Java Service Wrapper Standard Edition 64-bit 3.4.1
STATUS | wrapper | 2011/09/28 19:45:00 | Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2011/09/28 19:45:00 |
http://wrapper.tanukisoftware.org
STATUS | wrapper | 2011/09/28 19:45:00 | Licensed to TradeCard, Inc. for TradeCard Linux 64
STATUS | wrapper | 2011/09/28 19:45:00 |
INFO | wrapperp | 2011/09/28 19:45:00 | port 32000 already in use, using port 32001 instead.
STATUS | wrapper | 2011/09/28 19:45:00 | Launching a JVM...
INFO | jvm 1 | 2011/09/28 19:45:00 | Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
INFO | jvm 1 | 2011/09/28 19:45:01 | java version "1.6.0_22"
INFO | jvm 1 | 2011/09/28 19:45:01 | Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
INFO | jvm 1 | 2011/09/28 19:45:01 | Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)