tor_multipath_voip/scripts/generate_csv

12 lines
776 B
Text
Raw Normal View History

2019-03-28 20:13:32 +00:00
#!/bin/bash
echo "naive latencies global"
{ echo "delta" ; ls|grep xp1-|while read -r line; do cat $line/res/*.txt|grep -Po "\d*µs"|grep -Po "\d*"; done } > naive_latencies_global.csv
echo "naive latencies distri"
{ echo "hs,type,delta";ls|grep xp1-|while read -r line; do cat $line/res/*.txt|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > naive_latencies_distri.csv
echo "orig latencies global"
{ echo "delta" ; ls|grep xp2-|while read -r line; do cat $line/res/*.csv|grep -Po "\d*µs"|grep -Po "\d*"; done } > orig_latencies_global.csv
echo "orig latencies distri"
{ echo "hs,type,delta";ls|grep xp2-|while read -r line; do cat $line/res/*.csv|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > orig_latencies_distri.csv