2018-12-13 11:42:19 +08:00
|
|
|
#!/bin/bash
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
|
|
cd $SCRIPTPATH/..
|
|
|
|
make parseandstatcompetition
|
2018-12-15 10:32:42 +08:00
|
|
|
echo "parsing and collecting basic stats on json documents as quickly as possible"
|
2018-12-13 11:42:19 +08:00
|
|
|
echo
|
|
|
|
for i in $SCRIPTPATH/../jsonexamples/*.json; do
|
|
|
|
[ -f "$i" ] || break
|
|
|
|
echo $i
|
|
|
|
$SCRIPTPATH/../parseandstatcompetition $i
|
|
|
|
echo
|
|
|
|
done
|
2018-12-15 10:32:42 +08:00
|
|
|
|
|
|
|
make distinctuseridcompetition
|
|
|
|
echo "parsing and finding all user.id"
|
|
|
|
echo
|
|
|
|
|
|
|
|
for i in $SCRIPTPATH/../jsonexamples/twitter.json; do
|
|
|
|
[ -f "$i" ] || break
|
|
|
|
echo $i
|
|
|
|
$SCRIPTPATH/../distinctuseridcompetition jsonexamples/twitter.json
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|