masterarbeit/dokumentation/evolution1d/post_lmb.sh

27 lines
1014 B
Bash
Raw Permalink Normal View History

2017-10-24 11:22:20 +00:00
#!/bin/bash
echo "\"Least squares\",regularity,variability,improvement,improvement.5,improvement.75,improvement.25,steps,\"Evolution error\",sigma"
cat "$1" | grep "EVOL" \
| sed -s "s/info: EVOL: //" \
| grep -v "Evolvability" \
| grep -v "current error is" \
| sed -s "s/fitting done.. Error: //" \
| sed -s "s/Evolution step \(.*\): \(.*\)\t\(.*\)/\1\n\2\n\3/" \
| sed -s "s/regularity: //" \
| sed -s "s/variability: //" \
| sed -s "s/improvement: //" \
| sed -s "s/improvement l.5: //" \
| sed -s "s/improvement l.75: //" \
| sed -s "s/improvement l.25: //" \
| while read -r ONE; do
read -r TWO
read -r THREE
read -r FOUR
read -r FIVE
read -r SIX
read -r SEVEN
read -r EIGHT
read -r NINE
read -r TEN
echo "$ONE,$TWO,$THREE,$FOUR,$FIVE,$SIX,$SEVEN,$EIGHT,$NINE,$TEN"
done