dendrobates-t-azureus/cache_utils/g5k-2020-60-03-dfd59064fc/analyse.sh
2020-09-22 14:27:52 +02:00

12 lines
505 B
Bash
Executable File

#!/bin/sh
NAME=`basename "$1" .txt.bz2`
echo $NAME
bzcat $1 | awk '/^Iteration [:digit:]*[.]*/ ' > "${NAME}-iterations.txt"
rm "${NAME}-results.csv.bz2"
#TODO forward NAME to awk script
awk -v logname="${NAME}" -f `dirname $0`/analyse_iterations.awk < "${NAME}-iterations.txt" | bzip2 -c > "${NAME}-results.csv.bz2" # This uses system to split off awk scripts doing the analysis
bzgrep -v -e "0,0$" "${NAME}-results.csv.bz2" | bzip2 -c > "${NAME}-results_lite.csv.bz2"
#paste -d"," *.csv > combined.csv