#!/bin/bash
for i in {-10..18}; do 
	nb=$(echo "scale=3; 1.52986 + $i/10" | bc -l)
	sed "s/cc=1.52986/cc=$nb/" et.inp  > c_${i}.inp
	#gms c_${i}.inp 1 > c_${i}.log
	echo -n "$nb    "
	awk '/TOTAL ENERGY =/{print $4}'  c_${i}.log 
done