move awg simulations to root

This commit is contained in:
Bastian Bloessl
2016-05-31 15:40:43 +02:00
parent ece3cbf5bb
commit c05497dc19
6 changed files with 156 additions and 193 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
files=`ls results/*.pcap`
outfile=results/all.csv
rm -f ${outfile}
echo "repetition;encoding;snr;received"
echo "repetition;encoding;snr;received" > ${outfile}
for f in ${files}
do
repetition=`python -c "print \"${f}\".split(\"_\")[1]"`
encoding=`python -c "print \"${f}\".split(\"_\")[2]"`
snr=`python -c "print \"${f}\".split(\"_\")[3]"`
echo "file ${f} repetition ${repetition} encoding ${encoding} snr ${snr}"
rcvd=`tshark -r ${f} | wc -l | tr -d " "`
echo "${repetition};${encoding};${snr};${rcvd}"
echo "${repetition};${encoding};${snr};${rcvd}" >> ${outfile}
done