-
Notifications
You must be signed in to change notification settings - Fork 3
/
RunMonthly.sh
33 lines (31 loc) · 1 KB
/
RunMonthly.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
#This file is included solely to be used as an example. It will likely need to be heavily modified from month to month
#(or from run to run)
logFolder=/mnt/store0/pslogs/main/
month="2024-05"
mkdir Raw
echo $(date)
for d in {26..31}
do
day=$(printf "%02d" $d)
for i in $logFolder/$month/*
do
tier=$(basename $i)
if [[ $tier == seasonal* ]] || [[ $tier == *random* ]] || [[ $tier == *computer* ]] || [[ $tier == *custom* ]] || [[ $tier == *petmod* ]] || [[ $tier == *superstaff* ]] || [[ $tier == *factory* ]] || [[ $tier == *challengecup* ]] || [[ $tier == *hackmonscup* ]] || [[ $tier == *digimon* ]] || [[ $tier == *crazyhouse* ]]; then
echo Skipping $tier/$month-$day
continue
fi
if [ -d $logFolder/$month/$tier/$month-$day ]; then
echo Processing $tier/$month-$day
python batchLogReader.py $logFolder/$month/$tier/$month-$day/ $tier
fi
echo $(date)
done
done
echo $(date)
./MonthlyAnalysis.sh
echo $(date)
./CompressStats.sh $month
echo $(date)
gzip -rk9 Stats/
echo $(date)