1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-08 03:42:19 +03:00
Files
mariadb-columnstore-engine/utils/scenarios/perf/source/pf/common/extractlogdata.sh
2016-01-06 14:08:59 -06:00

25 lines
800 B
Bash
Executable File

#! /bin/sh
#
#/*******************************************************************************
#* Script Name: extractlogdata.sh
#* Date Created: 2008.12.02
#* Author: Stephen Cargile
#* Purpose: extract stats data plus time info
#*
#* Input Parameters:
#* dbSize - Size of database
#* streamNum - the type of stream (0 or 17)
#*
#******************************************************************************/
#
# Get user input
#
dbSize=$1
streamNum=$2
#
awk -F'[;-]' '/Query Stats/ {print $2,"\t", $4,"\t", $6,"\t" $8,"\t" $10,"\t" $12,"\t" $14,"\t" $16,"\t" $18,"\t" $20}' tpch${dbSize}_s${streamNum}.log | sed 's/MB//' >> afile.txt
grep "time:" tpch${dbSize}_s${streamNum}.log | cut -d" " -f3 >> time.txt
# End of script