forked from smogon/usage-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunPartial.sh
29 lines (27 loc) · 959 Bytes
/
RunPartial.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
#!/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 {17..25}
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)
./PartialAnalysis.sh
echo $(date)