aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-17 12:25:16 -0400
committerFranklin Wei <me@fwei.tk>2018-07-17 12:25:30 -0400
commit712cc686d14409a75be3534747828fc0150846a0 (patch)
treef08fcd505384040c6713ffb42155f7cfee517a5a
parent2e8d53cce8c041c46f6f1ab0bdf7a109edcb37cf (diff)
downloadcsaa-712cc686d14409a75be3534747828fc0150846a0.zip
csaa-712cc686d14409a75be3534747828fc0150846a0.tar.gz
csaa-712cc686d14409a75be3534747828fc0150846a0.tar.bz2
csaa-712cc686d14409a75be3534747828fc0150846a0.tar.xz
Allow tabulation of data from partially complete runs
-rwxr-xr-xtabulate.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/tabulate.sh b/tabulate.sh
index fa5b82f..c8c22d9 100755
--- a/tabulate.sh
+++ b/tabulate.sh
@@ -18,23 +18,25 @@ rm -f data_create.txt data_modify.txt data_retrieve.txt data_modifyenc.txt data_
rm -f data_dummy_create.txt data_dummy_modify.txt data_dummy_retrieve.txt
cat all_*.txt | awk '{
-if(NF >= 21)
-{
+if(NF >= 5)
print $1, $5 >> "data_create.txt";
+if(NF >= 9)
print $1, $9 >> "data_modify.txt"
+if(NF >= 13)
print $1, $13 >> "data_retrieve.txt"
+if(NF >= 17)
print $1, $17 >> "data_modifyenc.txt"
+if(NF >= 21)
print $1, $21 >> "data_retrieveenc.txt"
-}
}'
cat dummy_all_*.txt | awk '{
-if(NF >= 13)
-{
+if(NF >= 5)
print $1, $5 >> "data_dummy_create.txt";
+if(NF >= 9)
print $1, $9 >> "data_dummy_modify.txt";
+if(NF >= 13)
print $1, $13 >> "data_dummy_retrieve.txt";
-}
}'
for f in data*.txt