-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_run_data.sh
More file actions
executable file
·43 lines (36 loc) · 1.07 KB
/
get_run_data.sh
File metadata and controls
executable file
·43 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Path prefix
prefix="results/plots/final_variants_2/"
echo > run.txt
for file in \
"CustRangeMap--no-sort-16.0-sbbf.dat" \
"CustRangeMap--no-sort-16.0-cbf.dat" \
"CustRangeMap--no-sort-16.0-pbf.dat" \
"LdsRangeMap--partial-lut-small-1-0.dat" \
"CustRangeMap--partial-lut-small-1-0.dat" \
"LdsRangeMap--partial-lut-big-0-16.dat" \
"CustRangeMap--partial-lut-big-0-16.dat" \
"LdsRangeMap--full-sort.dat" \
"CustRangeMap--full-sort.dat" \
"cpsbbf.dat";
do
echo $file >> run.txt
cat $prefix/$file >> run.txt
echo >> run.txt
done
sed -I .bak -e 's/CustRangeMap--//g' \
-e 's/LdsRangeMap--/lds-/g' \
-e 's/lut-big-//g' \
-e 's/lut-small-//g' \
-e 's/.dat//g' \
-e 's/partial/partition/g' \
-e 's/-0-/-/g' \
-e 's/25 /4 /g' \
-e 's/26 /8 /g' \
-e 's/27 /16 /g' \
-e 's/28 /32 /g' \
-e 's/29 /64 /g' \
-e 's/30 /128 /g' \
-e 's/no-sort-16.0-//g' run.txt
cp run.txt run.txt.awk.bak
awk 'NF>2 { print $1, $2; next } { print }' run.txt.awk.bak > run.txt
cat run.txt