#!/bin/bash
for i in {-10..10}; do 
	nb=$(echo "scale=3; 111.2 + $i/5" | bc -l)
	sed "s/cchv=111./cchv=$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