-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_cache_data_raw.sh
More file actions
executable file
·36 lines (30 loc) · 974 Bytes
/
get_cache_data_raw.sh
File metadata and controls
executable file
·36 lines (30 loc) · 974 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
# Path prefix
prefix="results/plots/final_variants_2_cache/"
echo > cache_raw.txt
for file in \
"CustRangeMap--no-sort.raw" \
"CustRangeMap--no-sort-16.0-pbf.raw" \
"LdsRangeMap--full-sort.raw" \
"CustRangeMap--no-sort-16.0-cbf.raw" \
"CustRangeMap--full-sort.raw" \
"LdsRangeMap--partial-lut-big-0-16.raw" \
"CustRangeMap--partial-lut-big-0-16.raw" \
"CustRangeMap--no-sort-16.0-sbbf.raw";
do
echo $file >> cache_raw.txt
cat $prefix/$file >> cache_raw.txt
echo >> cache_raw.txt
done
sed -I .bak -e 's/CustRangeMap--//g' \
-e 's/LdsRangeMap--/lds-/g' \
-e 's/lut-big-//g' \
-e 's/.raw//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-//g' cache_raw.txt
cp cache_raw.txt cache_raw.txt.awk.bak
awk 'NF>2 { print $1, $2; next } { print }' cache_raw.txt.awk.bak > cache_raw.txt
cat cache_raw.txt