08-27-2014, 03:47 PM
New Version 1.0
[hide]
#!/bin/sh
echo "###############################################################################"
#Var
LOG1=Log140101000716
LOG2=Log140101000716
LOG3=Log140101000716
LOG4=Log140101000716
LOG5=Log140101000716
LOG6=Log140101000716
DIR=/home/Server/GameServer/LogFiles
DIR2=/home/Server/Log.txt
#Searching for what? (default settings)
S1=GM COMMAND
S2=HACK ATTACK
S3=GO ZONE FAILED
S4=HACK MOVE
echo "###############################################################################"
rm Log.txt
touch Log.txt
find $DIR-type f -name $LOG1 | xargs grep '$S1' >> $DIR2;
find $DIR-type f -name $LOG2 | xargs grep '$S1' >> $DIR2;
find $DIR-type f -name $LOG3 | xargs grep '$S1' >> $DIR2;
find $DIR-type f -name $LOG1 | xargs grep '$S2' >> $DIR2;
find $DIR-type f -name $LOG2 | xargs grep '$S2' >> $DIR2;
find $DIR-type f -name $LOG3 | xargs grep '$S2' >> $DIR2;
find $DIR-type f -name $LOG1 | xargs grep '$S3' >> $DIR2;
find $DIR-type f -name $LOG2 | xargs grep '$S3' >> $DIR2;
find $DIR-type f -name $LOG3 | xargs grep '$S3' >> $DIR2;
find $DIR-type f -name $LOG1 | xargs grep '$S4' >> $DIR2;
find $DIR-type f -name $LOG2 | xargs grep '$S4' >> $DIR2;
find $DIR-type f -name $LOG3 | xargs grep '$S4' >> $DIR2;
clear
[/hide]

