20 lines
641 B
Bash
20 lines
641 B
Bash
|
#!/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
|