-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_cache_data.sh
More file actions
executable file
·37 lines (31 loc) · 957 Bytes
/
get_cache_data.sh
File metadata and controls
executable file
·37 lines (31 loc) · 957 Bytes
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
# Path prefix
prefix="results/plots/final_variants_2_cache/"
echo > cache.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-big-0-16.dat" \
"CustRangeMap--partial-lut-big-0-16.dat" \
"LdsRangeMap--full-sort.dat" \
"cpsbbf.dat" \
"CustRangeMap--full-sort.dat";
do
echo $file >> cache.txt
cat $prefix/$file >> cache.txt
echo >> cache.txt
done
sed -I .bak -e 's/CustRangeMap--//g' \
-e 's/LdsRangeMap--/lds-/g' \
-e 's/lut-big-//g' \
-e 's/.dat//g' \
-e 's/partial/partition/g' \
-e 's/-0-/-/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' cache.txt
cp cache.txt cache.txt.awk.bak
awk 'NF>2 { print $1, $2; next } { print }' cache.txt.awk.bak > cache.txt
cat cache.txt