#!/bin/bash

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

     nb=$(echo "scale=5; 1.52986 + $i/50" | bc -l)


     sed "s/cc=1.52986/cc=$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