masterarbeit/dokumentation/evolution3d/post.sh

20 lines
641 B
Bash
Raw Permalink Normal View History

2017-09-27 20:06:25 +00:00
#!/bin/bash
echo "regularity,variability,improvement,\"Evolution error\",steps"
cat "$1" | grep "EVOL" \
| sed -s "s/info: EVOL: //" \
| grep -v "info:" \
| grep -v "Evolvability" \
| grep -v "Converged after" \
| sed -s "s/regularity: //" \
| sed -s "s/variability: //" \
| sed -s "s/improvement: //" \
| sed -s "s/Best value: //" \
| sed -s "s/TOTAL STEPS: //" \
| while read -r ONE; do
read -r TWO
read -r THREE
read -r FOUR
read -r FIVE
echo "$ONE,$TWO,$THREE,$FOUR,$FIVE"
done