]> git.somenet.org - pub/jan/netsec2.git/blob - exercise2/task2/autocorr_all.sh
Ex2 is done.
[pub/jan/netsec2.git] / exercise2 / task2 / autocorr_all.sh
1 #!/bin/bash
2
3 for f in *.csv ; do
4         sed -e 's/,"0x[a-fA-F0-9]\{4\} (\([0-9]\+\))",/,"\1",/' -e 's/,"UDP"$/,"17"/' -e 's/,"ICMP"$/,"1"/' $f > ${f}.dehexed
5         echo "$f, $1: $(../../autocorr.py --input ${f}.dehexed --field ${1})"
6 done