#!/bin/bash 

for i in {-15..15}; do 

     nb=$(echo "scale=5; 0 + $i*12" | bc -l)
     sed "s/d3=180/d3=$nb/" et.inp  > a_${i}.inp

#gms a_${i}.inp 1 > a_${i}.log
echo -n "$nb    "
awk '/TOTAL ENERGY = /{print $4}'  a_${i}.log
done