WIP parsing

This commit is contained in:
Quentin 2019-09-05 14:45:28 +02:00
parent bc9ac1c559
commit ae1afef215
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,13 @@
SHELL := /bin/bash
test:
. parse_lib.sh && \
get_xp tor_bw_small | while read r; do \
for i in 0 1 2 3; do \
extract_us $$r $$i; \
done; \
done;
tor_bw_small:
./run-3 \
1,tor_bw_small . \

7
scripts/parse_lib.sh Normal file
View file

@ -0,0 +1,7 @@
get_xp() {
grep -rn "identifier=$1" ./out/*/info.txt|grep -Po "^./out/\w+"|grep -Po '\w+$$'|uniq
}
extract_us() {
grep -Po '\d+µs' ./out/$1-$2/res/*.csv | grep -Po '\d+'
}