mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 16:06:39 +00:00
17 lines
426 B
Bash
Executable File
17 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
JAVA_HOME=/opt/sapjvm_8
|
|
VARLOGOLD=/var/log/old
|
|
# Production:
|
|
CACHE=$VARLOGOLD/cache/unique-ips-per-referrer
|
|
# Test:
|
|
#CACHE=$VARLOGOLD/cache/unique-ips-per-referrer/test
|
|
|
|
JAR_FILE=$VARLOGOLD/com.sap.sse.jar
|
|
|
|
$JAVA_HOME/bin/java -Xmx8G -jar $JAR_FILE $CACHE $*
|
|
|
|
# Do the sorting of all .unique files now:
|
|
for i in `find $CACHE -name '*.unique'`; do
|
|
cat $i | awk '{ print $2 " " $1; }' | sort -rn >${i}.sorted
|
|
done
|