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