For some strange reason, the following script is throwing the error - line 28: syntax error: unexpected end of file
TYPEPATTERN=("LogName=Security", "auditd", "hostd")
###### MAIN
for gzip in $(find . -type f -name "*.gz");
do
for pattern in ${TYPEPATTERN[@]};
do
zcat $gzip | grep $pattern
#Add to list if matches search
if [ $? == 0 ]
then
if pattern == "LogName=Security"
then
mv $gzip /tmp/recover/windows
else
mv $gzip /tmp/recover/unix
fi
fi
done
done