#!/bin/bash
for i in {0..30}; do 
nb=$(echo "scale=5; 180 - 12*$i" | bc -l)
sed "s/d3=180/d3=$nb/" et.inp  > b_${i}.inp
#gms b_${i}.inp 1 > b_${i}.log 
echo -n "$nb    "
awk '/TOTAL ENERGY =/{print $4}'  b_${i}.log 
done
