#!/bin/bash

./energy.pl exout.* > fort.10
data=`cat fort.10 | wc -l`
new=`expr $data / 7` 
echo $new > fort.11

./energy

rm fort.*

exit 0